joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400304c0
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.140174b20
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 0x1400306ea
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1400306ea
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.140029360
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r15, qword [rax]
call fcn.140029360
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.140176104
mov rsi, qword [0x140279168]
mov r14, rax
mov rax, rdi
mov rcx, r15
mul rbp
mov rbx, rdx
mov rdi, rax
call fcn.14002b160
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 0x140030614
nop dword [rax + rax]
cmp r9, qword [rbx]
jne 0x14003060b
cmp rbp, qword [rbx + 0x20]
jne 0x14003060b
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 0x140030603
inc rax
test ecx, ecx
jne 0x1400305f0
test edx, edx
je 0x1400306b0
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400305d0
mov edx, 1
lea ecx, [rdx + 0x57]
call fcn.140176104
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.14002a080
lea rcx, [rbx + 0x38]
mov rdx, r15
call fcn.14002a080
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.140030730
mov rcx, qword [0x140279168]
mov rdx, rbx
call fcn.140030130
mov rax, qword [0x140279168]
cmp dword [rax + 0x10], 0x3e8
jge 0x140030715
mov qword [r14 + 0x10], rbx
test r13, r13
je 0x1400306b4
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 0x1400306bb
xor edi, edi
jmp 0x140030692
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 0x140030550
lea rcx, [rsp + 0x4b0]
call fcn.1400536e0
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.140028b40
int3
Function at 0x1400326b0
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, [0x1400322c0]
lea rdx, [rsp + 0x30]
call fcn.140028f10
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.14002a160
cmp dword [0x14027e440], 6
jl 0x14003272c
mov r8, qword [rsp + 0x30]
lea rdx, str.sys_exec__s_
mov ecx, 0x480006
mov r8, qword [r8]
call fcn.14002d250
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.1400328c0
test eax, eax
jns 0x140032768
cmp dword [0x14027e440], 6
jl 0x14003281b
mov r8, qword [rsp + 0x30]
lea rdx, str.failed_sys_exec_bg__s_
mov ecx, 0x480006
mov r8, qword [r8]
call fcn.14002d250
jmp 0x14003281b
cdqe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], rdi
call fcn.140033cb0
mov rbx, rax
mov edi, 0xffffffff
mov ecx, dword [0x140279188]
test ecx, ecx
je 0x1400327a7
imul ecx, ecx, 0x3e8
movsxd rdx, ecx
sub rdx, rax
xor eax, eax
add rdx, rbx
cmovne rax, rdx
jmp 0x1400327aa
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 0x1400327cb
call fcn.140033cb0
jmp 0x140032786
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x1400327f3
mov edx, reloc.WS2_32.dll_shutdown
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x20], 0xfffffff7
jmp 0x140032811
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.1400536e0
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 0x140032e90
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 0x140032f50
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.140176104
mov qword [rbx], rax
lea r8, [0x140033130]
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.14017f3f4
mov qword [r14], rax
test rax, rax
je 0x140032fce
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.14002d720
int3
Function at 0x140033b60
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.140172eb0
mov rax, qword gs:[0x58]
mov esi, 0x18c4
mov rbx, qword [rax]
mov eax, dword [rsi + rbx]
inc eax
and eax, 0x80000007
jge 0x140033baf
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.140170640
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 0x14003c670
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 0x14003c731
lea rcx, [rsp + 0x28]
mov rdx, rdi
sub rcx, 8
call fcn.1400294d0
mov rcx, qword [0x140279320]
mov r8d, 0x10000
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401710c0
mov rsi, rax
test rax, rax
je 0x14003c731
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003c6f6
mov r8, rdi
lea rdx, str.Failed_deleting_service__s:__m
mov ecx, 0x5b0003
call fcn.14002d250
jmp 0x14003c6f8
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003c71f
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d250
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 0x14003c750
call fcn.1401760e4
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 0x14003c770
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 0x14003c838
lea rcx, [rsp + 0x68]
mov rdx, rdi
sub rcx, 8
call fcn.1400294d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401710c0
mov rsi, rax
test rax, rax
je 0x14003c838
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.140171070
test rax, rax
jne 0x14003c80b
mov r8, rdi
lea rdx, str.failed_query_service_status__s:__m
mov ecx, 0x5b0003
call fcn.14002d250
test eax, eax
jne 0x14003c80f
mov ebx, dword [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003c84c
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d250
jmp 0x14003c84c
mov r8, rdi
lea rdx, str.service__s_doesnt_exist
mov ecx, 0x5b0005
call fcn.14002d250
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003c870
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 0x14003c93a
lea rcx, [rsp + 0x68]
mov rdx, rdi
sub rcx, 8
call fcn.1400294d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401710c0
mov rsi, rax
test rax, rax
je 0x14003c93a
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.140171070
test rax, rax
jne 0x14003c90d
mov r8, rdi
lea rdx, str.failed_query_service_status__s:__m
mov ecx, 0x5b0003
call fcn.14002d250
test eax, eax
jne 0x14003c911
mov ebx, dword [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003c94e
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d250
jmp 0x14003c94e
mov r8, rdi
lea rdx, str.service__s_doesnt_exist
mov ecx, 0x5b0005
call fcn.14002d250
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003ca10
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 0x14003ca45
call fcn.14003d5c0
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 0x14003cb78
lea rcx, [rsp + 0x98]
mov rdx, rdi
add rcx, 0xfffffffffffffff8
call fcn.1400294d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401710c0
mov r12, rax
test rax, rax
je 0x14003cb78
lea rcx, [rsp + 0x98]
mov rdx, rbx
add rcx, 0xfffffffffffffff8
call fcn.1400294d0
lea rcx, [rsp + 0x98]
mov rdx, r13
add rcx, 0xfffffffffffffff8
mov rbx, qword [rax]
call fcn.1400294d0
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.140171070
test rax, rax
jne 0x14003cb41
mov r8, rdi
lea rdx, str.Failed_changing_service_config__s:__m
mov ecx, 0x5b0003
call fcn.14002d250
jmp 0x14003cb44
mov r14d, ebx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003cb6b
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d250
test r14d, r14d
je 0x14003cba2
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.14003c390
test eax, eax
je 0x14003cba2
or eax, 0xffffffff
jmp 0x14003cbc1
mov r8d, dword [rsp + 0xc8]
mov rcx, rdi
mov rdx, qword [rsp + 0xb0]
call fcn.14003cbe0
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 0x14003cbe0
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 0x14003cc0f
mov ebx, r14d
jmp 0x14003cc41
lea rcx, [rsp + 0xa8]
sub rcx, 8
call fcn.1400294d0
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.1401710c0
mov rbx, rax
lea rcx, [rsp + 0xa8]
mov rdx, rbp
sub rcx, 8
or edi, 0xffffffff
call fcn.1400294d0
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.140171070
test rax, rax
jne 0x14003cc9d
lea rdx, str.Failed_changing_service_description:__m
mov ecx, 0x5b0003
call fcn.14002d250
test eax, eax
jne 0x14003cd7e
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 0x14003cd03
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.140171070
test rax, rax
jne 0x14003cd38
lea rdx, str.Failed_changing_service_failure_action:__m
mov ecx, 0x5b0003
call fcn.14002d250
test eax, eax
jne 0x14003cd7e
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.140171070
test rax, rax
jne 0x14003cd7b
lea rdx, str.failed_SetServiceObjectSecurity____m
mov ecx, 0x5b0003
call fcn.14002d250
jmp 0x14003cd7e
mov edi, r14d
test rbx, rbx
je 0x14003cdaa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003cdaa
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d250
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 0x14003d100
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.1400294d0
mov rdx, rbx
mov rcx, rdi
mov rbp, qword [rax]
call fcn.1400294d0
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rax]
call fcn.1400294d0
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.1401710c0

Function at 0x14003d260
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 0x14003d28f
call fcn.14017610c
mov qword [rdi], rsi
mov edx, 1
mov ecx, 0x400
call fcn.140176104
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.140171070
test rax, rax
jne 0x14003d305
cmp dword [0x14027e484], 6
jl 0x14003d2de
lea rdx, str.EnumProcessModules_failed:__m
mov ecx, 0x590006
call fcn.14002d250
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d2ee
call fcn.14017610c
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 0x14003d2ee
mov rcx, qword [rdi]
lea esi, [rbx + rbx]
mov edx, esi
shl rdx, 3
call fcn.14017d424
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.140171070
test rax, rax
je 0x14003d35a
mov ebx, dword [rsp + 0x38]
shr ebx, 3
cmp ebx, esi
jae 0x14003d36c
jmp 0x14003d2ee
lea rdx, str.EnumProcessModules_2nd_failed:__m
mov ecx, 0x590000
call fcn.14002d720
int3
lea rdx, str.EnumProcessModules_no_space
mov ecx, 0x590000
call fcn.14002d720
int3
Function at 0x14003d480
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003d4e6
add rsp, 0x60
pop rbx
ret
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003d51d
lea rdx, str.failed_CheckTokenMembership__:__m
mov ecx, 0x550003
call fcn.14002d250
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x14003d5c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140263bb0]
cmp ecx, 0xffffffff
jne 0x14003d6cb
mov qword [rsp + 0x20], rbx
xor ebx, ebx
cmp dword [0x140263bb4], ecx
jne 0x14003d6c6
cmp dword [0x140279340], ebx
jne 0x14003d616
lea rcx, [0x140279340]
mov dword [0x140279340], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movsxd rcx, eax
call fcn.140171070
test rax, rax
je 0x14003d6d2
mov edx, dword [0x140279344]
movzx r8d, word [0x140279454]
mov eax, dword [0x140279348]
cmp edx, 0xa
jg 0x14003d68e
jne 0x14003d63c
test eax, eax
jns 0x14003d68e
mov ebx, 6
jmp 0x14003d693
cmp edx, 6
jg 0x14003d635
jne 0x14003d66b
cmp eax, 3
jge 0x14003d635
cmp eax, 2
jge 0x14003d664
cmp eax, 1
jge 0x14003d65d
test eax, eax
js 0x14003d687
mov ebx, 3
jmp 0x14003d693
mov ebx, 4
jmp 0x14003d693
mov ebx, 5
jmp 0x14003d693
cmp edx, 5
jg 0x14003d687
jne 0x14003d693
cmp eax, 2
jge 0x14003d687
cmp eax, 1
jge 0x14003d687
test eax, eax
js 0x14003d693
mov ebx, 1
jmp 0x14003d693
mov ebx, 2
jmp 0x14003d693
mov ebx, 7
mov dword [0x140263bb8], eax
mov ecx, ebx
mov eax, dword [0x14027934c]
mov dword [0x140263bbc], eax
mov eax, dword [0x140279350]
mov dword [0x140263bc0], eax
mov dword [0x140263bb0], ebx
mov dword [0x140263bb4], edx
mov dword [0x140263bc4], r8d
mov rbx, qword [rsp + 0x20]
mov eax, ecx
add rsp, 0x28
ret
lea rdx, str.GetVersionEx_failed__m
mov ecx, 0x55
call fcn.140028b40
int3
Function at 0x14003d800
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [0x140263bb4]
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbp, rcx
cmp r10d, 0xffffffff
je 0x14003d858
mov ebx, dword [0x140263bb0]
mov eax, dword [0x140263bb8]
mov edi, dword [0x140263bbc]
mov r11d, dword [0x140263bc0]
mov r9d, dword [0x140263bc4]
jmp 0x14003d93d
cmp dword [0x140279340], ebx
jne 0x14003d888
lea rcx, [0x140279340]
mov dword [0x140279340], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movsxd rcx, eax
call fcn.140171070
test rax, rax
je 0x14003d98f
mov r10d, dword [0x140279344]
mov eax, dword [0x140279348]
mov edi, dword [0x14027934c]
mov r11d, dword [0x140279350]
movzx r9d, word [0x140279454]
cmp r10d, 0xa
jg 0x14003d911
jne 0x14003d8bd
test eax, eax
jns 0x14003d911
mov ebx, 6
jmp 0x14003d916
cmp r10d, 6
jg 0x14003d8b6
jne 0x14003d8ed
cmp eax, 3
jge 0x14003d8b6
cmp eax, 2
jge 0x14003d8e6
cmp eax, 1
jge 0x14003d8df
test eax, eax
js 0x14003d90a
mov ebx, 3
jmp 0x14003d916
mov ebx, 4
jmp 0x14003d916
mov ebx, 5
jmp 0x14003d916
cmp r10d, 5
jg 0x14003d90a
jne 0x14003d916
cmp eax, 2
jge 0x14003d90a
cmp eax, 1
jge 0x14003d90a
test eax, eax
js 0x14003d916
mov ebx, 1
jmp 0x14003d916
mov ebx, 2
jmp 0x14003d916
mov ebx, 7
mov dword [0x140263bb0], ebx
mov dword [0x140263bb4], r10d
mov dword [0x140263bb8], eax
mov dword [0x140263bbc], edi
mov dword [0x140263bc0], r11d
mov dword [0x140263bc4], r9d
test rbp, rbp
je 0x14003d945
mov dword [rbp], ebx
test r15, r15
je 0x14003d94d
mov dword [r15], r10d
test r14, r14
je 0x14003d955
mov dword [r14], eax
test rsi, rsi
je 0x14003d95c
mov dword [rsi], edi
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14003d969
mov dword [rax], r11d
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14003d976
mov dword [rax], r9d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rdx, str.GetVersionEx_failed__m
mov ecx, 0x55
call fcn.140028b40
int3
Function at 0x14003d9b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
mov qword [rsp + 0x78], 0
mov ebp, r8d
lea rcx, [rsp + 0x58]
mov esi, edx
lea r8, [0x14003db00]
sub rcx, 8
lea rdx, [rsp + 0x38]
call fcn.140028f10
mov edx, 0x104
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], 0
mov rdi, rax
or rbx, 0xffffffffffffffff
call fcn.14002acc0
test ebp, ebp
je 0x14003da45
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call sub.WTSAPI32.dll_WTSQueryUserToken
movsxd rcx, eax
call fcn.140171070
test rax, rax
jne 0x14003da45
lea rdx, str.failed_get_token_for_active_user__m
mov rcx, rdi
call fcn.14002a080
jmp 0x14003dabd
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov edx, esi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14003da6e
lea rdx, str.failed_get_path_for_cid__d
jmp 0x14003dab2
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.14002a260
mov rax, qword [r14]
test rax, rax
je 0x14003daab
cmp byte [rax], 0
je 0x14003daab
nop dword [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14003da90
cmp byte [rbx + rax - 1], 0x5c
jne 0x14003daa7
mov byte [rbx + rax - 1], 0
xor ebx, ebx
jmp 0x14003daca
lea rdx, str.got_empty_path_for__d
mov r8d, esi
mov rcx, rdi
call fcn.14002a130
mov rdx, qword [rdi]
mov ecx, 0x550003
call fcn.14002d250
test ebp, ebp
je 0x14003dad8
lea rcx, [rsp + 0x30]
call fcn.1400536e0
lea rcx, [rsp + 0x78]
call fcn.14002ac10
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret