joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ce30
Capabilities:
Write file on windows

Disassembly:
lea r9, str.wbEe
or r8d, 0xffffffff
jmp fcn.14002c210

Function at 0x14002deb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x120
mov ecx, 2
movsxd rdi, r8d
mov rbp, rdx
call fcn.140176af8
mov rcx, rdi
lea r15, [0x140000000]
sar rcx, 0x10
mov rbx, rax
movzx r14d, cl
lea rax, [rsp + 0x20]
mov ecx, edi
mov rsi, rdi
and ecx, 0xf
cmp dword [r15 + r14*4 + 0x27e320], ecx
jge 0x14002df13
test edi, 0x300
je 0x14002e02c
cmp dword [0x14027e720], 0
je 0x14002df3b
call fcn.14002e440
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14016ed40
movzx ecx, word [0x1401a94c0]
mov word [rax], cx
inc rax
lea rdx, [r14 + r14*2]
mov rcx, rax
mov rdx, qword [r15 + rdx*8 + 0x263db8]
call fcn.14016ed40
movzx ecx, word [0x1401a94c0]
and esi, 0xf
mov word [rax], cx
lea rcx, [rax + 1]
mov rdx, qword [r15 + rsi*8 + 0x263040]
call fcn.14016ed40
movzx ecx, word [0x1401a94bc]
lea r8, [rsp + 0x11f]
mov rdx, rbp
mov word [rax], cx
lea rsi, [rax + 2]
movzx ecx, byte [0x1401a94be]
sub r8d, esi
mov byte [rax + 2], cl
mov rcx, rsi
call fcn.14016eaa0
lea rcx, [rsp + 0x11f]
mov r9, rbx
cmp rax, rcx
mov r8d, 1
lea rcx, [rsp + 0x20]
jae 0x14002dfcc
mov byte [rax], 0xa
sub rax, rcx
lea rcx, [rsp + 0x20]
lea rdx, [rax + 1]
call fcn.14017e654
jmp 0x14002dff6
lea rax, [rsp + 0x20]
sub rsi, rax
mov rdx, rsi
call fcn.14017e654
mov rdx, rbx
mov rcx, rbp
call fcn.14017dbd0
mov rdx, rbx
lea rcx, [0x1401a9148]
call fcn.14017dbd0
mov eax, dword [0x14026389c]
cmp eax, 0xffffffff
jne 0x14002e016
mov rcx, rbx
call fcn.140171310
mov ecx, eax
call fcn.140171970
mov dword [0x14026389c], eax
test eax, eax
mov ecx, 0x2000
cmovne edi, ecx
test ecx, edi
je 0x14002e02c
mov rcx, rbx
call fcn.14017e88c
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14002ede0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0
mov ebp, r8d
mov edi, edx
mov rsi, rcx
mov rbx, rcx
je 0x14002ee1f
cmp dword [rbx + 4], edi
jne 0x14002ee16
mov edx, dword [rbx]
mov r8d, ebp
mov rcx, rsi
call fcn.14002ede0
add rbx, 0x30
cmp dword [rbx], 0
jne 0x14002ee04
mov edx, ebp
mov ecx, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140173660
Function at 0x14002f860
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rdi, rcx
mov qword [rsp + 0x30], 0
mov rcx, qword [rcx]
mov r14d, r8d
mov qword [rbp + 0x460], 0
mov esi, edx
test rcx, rcx
je 0x14002f8a8
call fcn.1401762fc
mov qword [rdi], 0
lea rdx, [rsp + 0x58]
lea rcx, str.SeDebugPrivilege
call fcn.140053b60
test eax, eax
jne 0x14002fa0c
test esi, esi
jne 0x14002f8cc
call fcn.140171960
mov esi, eax
mov ecx, esi
call fcn.140030ed0
test eax, eax
jne 0x14002f9f8
xor edx, edx
lea ecx, [rax + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002fa0c
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14002f9f8
mov qword [rsp + 0x568], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
jne 0x14002f934
call fcn.140171960
cmp esi, eax
jne 0x14002f934
mov ebx, 1
jmp 0x14002f936
xor ebx, ebx
cmp dword [rsp + 0x44], esi
jne 0x14002f9cb
mov r8d, dword [rsp + 0x40]
lea rdx, str.Thread__ld:_n
mov rcx, rdi
call fcn.140029f80
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0xfffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
call fcn.1401712b0
mov qword [rbp + 0x460], rax
test rax, rax
jne 0x14002f98b
lea rdx, str.Failed_opening_the_thread:__m_n
mov rcx, rdi
call fcn.140029f80
jmp 0x14002f9cb
test ebx, ebx
je 0x14002fa23
lea rcx, [rsp + 0x70]
call qword [0x140279108]
mov r9, qword [rbp + 0x460]
lea rdx, [rsp + 0x70]
mov r8d, esi
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.14002fbf0
test ebx, ebx
jne 0x14002f9cb
mov rcx, qword [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
lea rcx, [rbp + 0x460]
mov ebx, eax
call fcn.1400538e0
test ebx, ebx
jne 0x14002f918
mov rbx, qword [rsp + 0x568]
lea rcx, [rsp + 0x58]
call fcn.140053bc0
lea rcx, [rsp + 0x30]
call fcn.1400538e0
mov rax, rdi
mov rsi, qword [rsp + 0x570]
add rsp, 0x540
pop r14
pop rdi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, eax
call fcn.140171260
cmp rax, 0xffffffffffffffff
jne 0x14002fa4a
lea rdx, str.Failed_to_suspend_the_thread:__m_n
mov rcx, rdi
call fcn.140029f80
jmp 0x14002f9cb
mov rcx, qword [rbp + 0x460]
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x60], 0x10001f
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14002f99e
lea rdx, str.Failed_getting_thread_context:__m_n
mov rcx, rdi
call fcn.140029f80
jmp 0x14002f9be
Function at 0x1400306c0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov ebx, ecx
xor edi, edi
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x438
mov r13d, edi
call fcn.140174d10
mov edx, ebx
mov dword [rsp + 0x20], 0x438
lea ecx, [rdi + 8]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x4b0], rax
mov rcx, rax
cmove rax, rdi
test rax, rax
je 0x1400308ea
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1400308ea
lea rbx, [rsp + 0x498]
movabs rdi, 0x5851f42d4c957f2d
add rbx, 0xfffffffffffffff8
mov qword [rsp + 0x4b8], rbx
nop
lea rdx, [rsp + 0x250]
mov rcx, rbx
call fcn.140029560
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r15, qword [rax]
call fcn.140029560
mov rbp, qword [rsp + 0x38]
mov edx, 1
mov r12, qword [rax]
mov eax, dword [rsp + 0x40]
lea ecx, [rdx + 0x17]
mov dword [rsp + 0x4a8], eax
call fcn.1401762f4
mov rsi, qword [0x140279168]
mov r14, rax
mov rax, rdi
mov rcx, r15
mul rbp
mov rbx, rdx
mov rdi, rax
call fcn.14002b360
movsxd rcx, dword [rsi + 4]
sub rdi, rbx
mov r9, rax
mov rax, qword [rsi + 8]
xor r9, rdi
and rcx, r9
mov rbx, qword [rax + rcx*8]
test rbx, rbx
je 0x140030814
nop dword [rax + rax]
cmp r9, qword [rbx]
jne 0x14003080b
cmp rbp, qword [rbx + 0x20]
jne 0x14003080b
mov r8, qword [rbx + 0x38]
mov rax, r15
sub r8, r15
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140030803
inc rax
test ecx, ecx
jne 0x1400307f0
test edx, edx
je 0x1400308b0
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400307d0
mov edx, 1
lea ecx, [rdx + 0x57]
call fcn.1401762f4
mov rbx, rax
xor edi, edi
mov rdx, r12
mov qword [rax + 0x20], rbp
mov eax, dword [rsp + 0x4a8]
lea rcx, [rbx + 0x30]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x44], edi
call fcn.14002a280
lea rcx, [rbx + 0x38]
mov rdx, r15
call fcn.14002a280
mov rcx, qword [reloc.WS2_32.dll_accept]
xor edx, edx
mov qword [rbx + 0x18], rcx
lea rax, [rcx + 4]
mov rcx, rbx
mov qword [reloc.WS2_32.dll_accept], rax
call fcn.140030930
mov rcx, qword [0x140279168]
mov rdx, rbx
call fcn.140030330
mov rax, qword [0x140279168]
cmp dword [rax + 0x10], 0x3e8
jge 0x140030915
mov qword [r14 + 0x10], rbx
test r13, r13
je 0x1400308b4
mov rax, qword [r13 + 8]
mov qword [r14 + 8], rax
mov qword [r13 + 8], r14
mov rax, qword [r14 + 8]
mov qword [rax], r14
jmp 0x1400308bb
xor edi, edi
jmp 0x140030892
mov qword [r14 + 8], r14
mov r13, r14
mov qword [r14], rdi
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x4b0]
call sub.KERNEL32.dll_Module32NextW
mov rbx, qword [rsp + 0x4b8]
movabs rdi, 0x5851f42d4c957f2d
test eax, eax
jne 0x140030750
lea rcx, [rsp + 0x4b0]
call fcn.1400538e0
mov rbx, qword [rsp + 0x4a0]
mov rax, r13
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.using_more_than_1000_module_entries
mov ecx, 0x36
call fcn.140028d40
int3
Function at 0x1400328b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x58
lea rcx, [rsp + 0x58]
sub rcx, 8
lea r8, [0x1400324c0]
lea rdx, [rsp + 0x30]
call fcn.140029110
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
mov rcx, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0xffffffff
mov qword [rsp + 0x28], 0
call fcn.14002a360
cmp dword [0x14027e440], 6
jl 0x14003292c
mov r8, qword [rsp + 0x30]
lea rdx, str.sys_exec__s_
mov ecx, 0x480006
mov r8, qword [r8]
call fcn.14002d450
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.140032ac0
test eax, eax
jns 0x140032968
cmp dword [0x14027e440], 6
jl 0x140032a1b
mov r8, qword [rsp + 0x30]
lea rdx, str.failed_sys_exec_bg__s_
mov ecx, 0x480006
mov r8, qword [r8]
call fcn.14002d450
jmp 0x140032a1b
cdqe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], rdi
call fcn.140033eb0
mov rbx, rax
mov edi, 0xffffffff
mov ecx, dword [0x140279188]
test ecx, ecx
je 0x1400329a7
imul ecx, ecx, 0x3e8
movsxd rdx, ecx
sub rdx, rax
xor eax, eax
add rdx, rbx
cmovne rax, rdx
jmp 0x1400329aa
mov rax, rdi
mov rcx, qword [rsp + 0x28]
mov r8d, 1
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
jne 0x1400329cb
call fcn.140033eb0
jmp 0x140032986
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x1400329f3
mov edx, reloc.WS2_32.dll_shutdown
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x20], 0xfffffff7
jmp 0x140032a11
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x20]
mov ecx, 0xffffffea
cmp eax, 3
cmove eax, ecx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x28]
call fcn.1400538e0
mov rax, qword gs:[0x58]
mov edx, 0x1670
mov rcx, qword [rax]
mov eax, dword [rsp + 0x20]
mov dword [rdx + rcx], eax
add rsp, 0x58
ret

Function at 0x140033090
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140033150
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov edx, 1
mov rsi, r8
lea ecx, [rdx + 0x1f]
call fcn.1401762f4
mov qword [rbx], rax
lea r8, [0x140033330]
mov r14, rax
xor edx, edx
mov r9, r14
xor ecx, ecx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov dword [rax + 0x1c], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call fcn.14017f5e4
mov qword [r14], rax
test rax, rax
je 0x1400331ce
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
lea rdx, str.failed_create_thread:__m
mov ecx, 0x4a0000
call fcn.14002d920
int3
Function at 0x140033d60
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1401730a0
mov rax, qword gs:[0x58]
mov esi, 0x18c4
mov rbx, qword [rax]
mov eax, dword [rsi + rbx]
inc eax
and eax, 0x80000007
jge 0x140033daf
dec eax
or eax, 0xfffffff8
inc eax
movsxd rcx, eax
lea r9, [rsp + 0x20]
shl rcx, 8
mov r8, rdi
mov ebp, 0x18e0
mov edx, 0x100
add rcx, rbp
mov dword [rsi + rbx], eax
add rcx, rbx
call fcn.140170830
movsxd rax, dword [rsi + rbx]
mov rsi, qword [rsp + 0x78]
shl rax, 8
add rax, rbp
mov rbp, qword [rsp + 0x70]
add rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14003c870
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
or ebx, 0xffffffff
mov rdi, rcx
cmp qword [0x140279320], 0
je 0x14003c931
lea rcx, [rsp + 0x28]
mov rdx, rdi
sub rcx, 8
call fcn.1400296d0
mov rcx, qword [0x140279320]
mov r8d, 0x10000
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401712b0
mov rsi, rax
test rax, rax
je 0x14003c931
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003c8f6
mov r8, rdi
lea rdx, str.Failed_deleting_service__s:__m
mov ecx, 0x5b0003
call fcn.14002d450
jmp 0x14003c8f8
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003c91f
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d450
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword gs:[0x58]
mov edx, 0x2f80
mov rcx, qword [rax]
mov rax, qword [rdx + rcx]
test rax, rax
jne 0x14003c950
call fcn.1401762d4
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
sub ecx, 0x424
mov rsi, qword [rsp + 0x38]
neg ecx
sbb eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14003c970
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [0x140279320], rbx
je 0x14003ca38
lea rcx, [rsp + 0x68]
mov rdx, rdi
sub rcx, 8
call fcn.1400296d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401712b0
mov rsi, rax
test rax, rax
je 0x14003ca38
lea rax, [rsp + 0x78]
xor edx, edx
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003ca0b
mov r8, rdi
lea rdx, str.failed_query_service_status__s:__m
mov ecx, 0x5b0003
call fcn.14002d450
test eax, eax
jne 0x14003ca0f
mov ebx, dword [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003ca4c
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d450
jmp 0x14003ca4c
mov r8, rdi
lea rdx, str.service__s_doesnt_exist
mov ecx, 0x5b0005
call fcn.14002d450
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003ca70
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
or ebx, 0xffffffff
mov rdi, rcx
cmp qword [0x140279320], 0
je 0x14003cb3a
lea rcx, [rsp + 0x68]
mov rdx, rdi
sub rcx, 8
call fcn.1400296d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401712b0
mov rsi, rax
test rax, rax
je 0x14003cb3a
lea rax, [rsp + 0x78]
xor edx, edx
lea r9d, [rbx + 0x25]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003cb0d
mov r8, rdi
lea rdx, str.failed_query_service_status__s:__m
mov ecx, 0x5b0003
call fcn.14002d450
test eax, eax
jne 0x14003cb11
mov ebx, dword [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003cb4e
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d450
jmp 0x14003cb4e
mov r8, rdi
lea rdx, str.service__s_doesnt_exist
mov ecx, 0x5b0005
call fcn.14002d450
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003cc10
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov eax, dword [0x140263bb0]
or r14d, 0xffffffff
mov r13, r9
mov rbx, rdx
mov rdi, rcx
cmp eax, r14d
jne 0x14003cc45
call fcn.14003d7c0
mov r15d, dword [rsp + 0xc0]
cmp eax, 2
mov esi, pe_nt_image_headers64
mov qword [rsp + 0xa0], r12
mov ecx, reloc.WS2_32.dll_recv
mov eax, r15d
cmovg esi, ecx
neg eax
sbb ebp, ebp
cmp qword [0x140279320], 0
je 0x14003cd78
lea rcx, [rsp + 0x98]
mov rdx, rdi
add rcx, 0xfffffffffffffff8
call fcn.1400296d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401712b0
mov r12, rax
test rax, rax
je 0x14003cd78
lea rcx, [rsp + 0x98]
mov rdx, rbx
add rcx, 0xfffffffffffffff8
call fcn.1400296d0
lea rcx, [rsp + 0x98]
mov rdx, r13
add rcx, 0xfffffffffffffff8
mov rbx, qword [rax]
call fcn.1400296d0
mov qword [rsp + 0x50], rbx
lea r8d, [rbp + 3]
xor ebx, ebx
mov edx, esi
mov qword [rsp + 0x48], rbx
mov rcx, r12
mov rax, qword [rax]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea r9d, [rbx + 1]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003cd41
mov r8, rdi
lea rdx, str.Failed_changing_service_config__s:__m
mov ecx, 0x5b0003
call fcn.14002d450
jmp 0x14003cd44
mov r14d, ebx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003cd6b
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d450
test r14d, r14d
je 0x14003cda2
mov rbx, qword [rsp + 0xa8]
mov dword [rsp + 0x28], r15d
mov r9d, 1
mov r8, r13
mov dword [rsp + 0x20], 0xbb8
mov rdx, rbx
mov rcx, rdi
call fcn.14003c590
test eax, eax
je 0x14003cda2
or eax, 0xffffffff
jmp 0x14003cdc1
mov r8d, dword [rsp + 0xc8]
mov rcx, rdi
mov rdx, qword [rsp + 0xb0]
call fcn.14003cde0
neg eax
sbb eax, eax
and eax, 0xfffffffe
mov r12, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003cde0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
xor r14d, r14d
mov rbp, rdx
cmp qword [0x140279320], r14
mov esi, r8d
mov rdx, rcx
jne 0x14003ce0f
mov ebx, r14d
jmp 0x14003ce41
lea rcx, [rsp + 0xa8]
sub rcx, 8
call fcn.1400296d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401712b0
mov rbx, rax
lea rcx, [rsp + 0xa8]
mov rdx, rbp
sub rcx, 8
or edi, 0xffffffff
call fcn.1400296d0
lea r8, [rsp + 0xc8]
lea edx, [rdi + 2]
mov rcx, qword [rax]
mov qword [rsp + 0xc8], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003ce9d
lea rdx, str.Failed_changing_service_description:__m
mov ecx, 0x5b0003
call fcn.14002d450
test eax, eax
jne 0x14003cf7e
mov qword [rsp + 0x20], r14
xorps xmm0, xmm0
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x50], 1
movdqu xmmword [rsp + 0x40], xmm0
test esi, esi
je 0x14003cf03
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], 0xea60
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x2c], 0x1d4c0
mov dword [rsp + 0x38], 0x2a300
mov dword [rsp + 0x50], 3
lea r8, [rsp + 0x38]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003cf38
lea rdx, str.Failed_changing_service_failure_action:__m
mov ecx, 0x5b0003
call fcn.14002d450
test eax, eax
jne 0x14003cf7e
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea r8, [rsp + 0x60]
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003cf7b
lea rdx, str.failed_SetServiceObjectSecurity____m
mov ecx, 0x5b0003
call fcn.14002d450
jmp 0x14003cf7e
mov edi, r14d
test rbx, rbx
je 0x14003cfaa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003cfaa
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d450
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14003d300
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rbx, rdx
lea rdi, [rsp + 0x88]
mov rdx, qword [rsp + 0xb8]
mov rsi, rcx
add rdi, 0xfffffffffffffff8
mov r14d, r9d
mov rcx, rdi
mov r15d, r8d
call fcn.1400296d0
mov rdx, rbx
mov rcx, rdi
mov rbp, qword [rax]
call fcn.1400296d0
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rax]
call fcn.1400296d0
xor ecx, ecx
mov r9d, r15d
mov qword [rsp + 0x60], rcx
mov r8, rbx
mov qword [rsp + 0x58], rcx
mov rdx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 0xb0]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x140279320]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
jmp fcn.1401712b0

Function at 0x14003d460
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
or ebx, 0xffffffff
mov rcx, qword [rdx]
xor esi, esi
mov rdi, rdx
test rcx, rcx
je 0x14003d48f
call fcn.1401762fc
mov qword [rdi], rsi
mov edx, 1
mov ecx, 0x400
call fcn.1401762f4
lea r9, [rsp + 0x38]
mov qword [rdi], rax
mov r8d, 0x400
mov rdx, rax
mov rcx, rbp
call sub.PSAPI.DLL_EnumProcessModules
movsxd rcx, eax
call fcn.140171260
test rax, rax
jne 0x14003d505
cmp dword [0x14027e484], 6
jl 0x14003d4de
lea rdx, str.EnumProcessModules_failed:__m
mov ecx, 0x590006
call fcn.14002d450
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d4ee
call fcn.1401762fc
mov qword [rdi], rsi
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov ebx, dword [rsp + 0x38]
shr ebx, 3
cmp ebx, 0x80
jb 0x14003d4ee
mov rcx, qword [rdi]
lea esi, [rbx + rbx]
mov edx, esi
shl rdx, 3
call fcn.14017d614
lea r8d, [rsi*8]
mov qword [rdi], rax
lea r9, [rsp + 0x38]
mov rdx, rax
mov rcx, rbp
call sub.PSAPI.DLL_EnumProcessModules
movsxd rcx, eax
call fcn.140171260
test rax, rax
je 0x14003d55a
mov ebx, dword [rsp + 0x38]
shr ebx, 3
cmp ebx, esi
jae 0x14003d56c
jmp 0x14003d4ee
lea rdx, str.EnumProcessModules_2nd_failed:__m
mov ecx, 0x590000
call fcn.14002d920
int3
lea rdx, str.EnumProcessModules_no_space
mov ecx, 0x590000
call fcn.14002d920
int3