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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push 2
call fcn.00541bde
mov edi, dword [ebp + 0x10]
add esp, 4
mov ecx, edi
mov ebx, edi
sar ecx, 0x10
and ebx, 0xf
movzx ecx, cl
mov esi, eax
lea eax, [ebp - 0x100]
mov dword [ebp + 0x10], ecx
cmp dword [ecx*4 + 0x601b40], ebx
jge 0x424be6
test edi, 0x300
je 0x424ce3
cmp dword [0x601f40], 0
je 0x424c12
call fcn.00424fe0
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00537ca0
mov cx, word [0x56ec88]
add esp, 8
mov word [eax], cx
inc eax
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*2]
push dword [ecx*4 + 0x5edc5c]
push eax
call fcn.00537ca0
movzx ecx, word [0x56ec88]
mov word [eax], cx
inc eax
push dword [ebx*4 + 0x5ed040]
push eax
call fcn.00537ca0
movzx ecx, word [0x56ec84]
mov ebx, eax
mov word [ebx], cx
mov cl, byte [0x56ec86]
mov byte [ebx + 2], cl
add ebx, 2
lea ecx, [ebp - 1]
sub ecx, ebx
push ecx
push dword [ebp + 0xc]
push ebx
call fcn.00537b60
add esp, 0x1c
lea ecx, [ebp - 1]
push esi
push 1
cmp eax, ecx
jae 0x424c88
mov byte [eax], 0xa
lea ecx, [ebp - 0x100]
sub eax, ecx
inc eax
push eax
mov eax, ecx
push eax
call fcn.00548884
add esp, 0x10
jmp 0x424cae
lea eax, [ebp - 0x100]
sub ebx, eax
push ebx
push eax
call fcn.00548884
push esi
push dword [ebp + 0xc]
call fcn.00547f61
push esi
push 0x56e950
call fcn.00547f61
add esp, 0x20
mov eax, dword [0x5ed874]
cmp eax, 0xffffffff
jne 0x424ccc
push esi
call fcn.0053b3e0
push eax
call fcn.0053b960
add esp, 8
mov dword [0x5ed874], eax
test eax, eax
mov ecx, 0x2000
cmovne edi, ecx
test ecx, edi
je 0x424ce3
push esi
call fcn.00548a6a
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425db0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test esi, esi
je 0x425dd3
mov ebx, esi
jmp 0x425dda
call fcn.0053b950
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
mov dword [ebp + 0x10], 0
call fcn.00443a10
add esp, 8
test eax, eax
je 0x425e17
push str.failed_privilege_enable
push 0x360003
call fcn.00424200
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x425e5a
push ebx
push 0
push 0xfffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call fcn.0053b3a0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x425e53
push str.failed_OpenProcess:__m
push 0x360003
call fcn.00424200
add esp, 8
or ebx, 0xffffffff
jmp 0x425f11
mov dword [ebp + 0x10], 1
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call fcn.004438b0
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x425e9a
push edi
push str.failed_z_CreateFile__s:__m
push 0x360003
call fcn.00424200
add esp, 0xc
or ebx, 0xffffffff
jmp 0x425f10
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x20], eax
test esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
cmovne eax, edx
mov dword [ebp - 0x14], 0x426580
cmp dword [ebp + 0x14], 0
mov edx, 7
push eax
mov eax, 0x11a0
mov dword [ebp - 0x10], 0
cmove eax, edx
push eax
push ecx
push ebx
push dword [ebp - 4]
call dword [0x5fd9f4]
push eax
call fcn.0053b370
xor ebx, ebx
add esp, 4
test eax, eax
sete bl
test eax, eax
jne 0x425f10
push edi
push str.failed_MiniDumpWriteDump__s:__m
push 0x360003
call fcn.00424200
add esp, 0xc
pop edi
lea eax, [ebp - 0x30]
push eax
call fcn.00443a70
lea eax, [ebp - 8]
push eax
call fcn.00443880
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x425f38
lea eax, [ebp - 4]
push eax
call fcn.00443880
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426030
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [edi]
test eax, eax
je 0x426060
push eax
call fcn.005414d0
add esp, 4
mov dword [edi], 0
lea eax, [ebp - 0x34]
push eax
push str.SeDebugPrivilege
call fcn.00443a10
add esp, 8
test eax, eax
jne 0x426197
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x426088
call fcn.0053b950
mov ebx, eax
push ebx
call fcn.004272d0
add esp, 4
test eax, eax
jne 0x426181
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
test eax, eax
je 0x426196
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1c
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x426181
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x1c], eax
jne 0x4260e1
call fcn.0053b950
cmp ebx, eax
jne 0x4260e1
mov esi, 1
jmp 0x4260e3
xor esi, esi
cmp dword [ebp - 0x18], ebx
jne 0x42615e
push dword [ebp - 0x1c]
push str.Thread__ld:_n
push edi
call fcn.004215e0
add esp, 0xc
push dword [ebp - 0x1c]
push 0
push 0xfffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
push eax
call fcn.0053b3a0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x426129
push str.Failed_opening_the_thread:__m_n
push edi
call fcn.004215e0
add esp, 8
jmp 0x42615e
test esi, esi
je 0x42619e
lea eax, [ebp - 0x300]
push eax
call dword [0x5fda08]
push dword [ebp + 0x10]
lea eax, [ebp - 0x300]
push dword [ebp - 4]
push ebx
push eax
push edi
call fcn.00426340
add esp, 0x14
test esi, esi
jne 0x42615e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Thread32Next
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.00443880
add esp, 4
test esi, esi
jne 0x4260c6
pop esi
lea eax, [ebp - 0x34]
push eax
call fcn.00443a70
lea eax, [ebp - 8]
push eax
call fcn.00443880
add esp, 8
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push eax
call fcn.0053b370
add esp, 4
cmp eax, 0xffffffff
jne 0x4261c3
push str.Failed_to_suspend_the_thread:__m_n
push edi
call fcn.004215e0
add esp, 8
jmp 0x42615e
lea eax, [ebp - 0x300]
mov dword [ebp - 0x300], 0x1001f
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x42613a
push str.Failed_getting_thread_context:__m_n
push edi
call fcn.004215e0
add esp, 8
jmp 0x426155
Function at 0x426c00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
xor ebx, ebx
lea eax, [ebp - 0x44c]
push 0x428
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.0053f280
add esp, 0xc
mov dword [ebp - 0x44c], 0x428
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ecx, eax
xor edx, edx
cmp ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
cmove eax, edx
test eax, eax
je 0x426de8
lea eax, [ebp - 0x44c]
push eax
push ecx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x426de8
push esi
lea esi, [ebp + 4]
add esi, 0xfffffffc
push edi
mov dword [ebp - 0x24], esi
mov edi, 0x41c64e6d
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.00420ce0
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
push eax
push esi
call fcn.00420ce0
mov esi, dword [ebp - 0x438]
push 1
push 0xc
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
call fcn.005414c5
push dword [ebp - 4]
mov ebx, dword [0x5fda3c]
mov dword [ebp - 0x20], eax
mov eax, esi
mul edi
mov edi, eax
mov esi, edx
call fcn.004225a0
mov ecx, dword [ebx + 4]
sub edi, esi
mov edx, eax
add esp, 0x1c
mov eax, dword [ebx + 8]
xor edx, edi
mov edi, dword [ebp - 8]
and ecx, edx
mov dword [ebp - 0x14], edx
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x426d33
mov ebx, dword [ebp - 4]
nop dword [eax + eax]
cmp edx, dword [esi]
jne 0x426d2c
cmp edi, dword [esi + 0x10]
jne 0x426d2c
mov eax, dword [esi + 0x1c]
mov ecx, ebx
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x426d20
test dl, dl
je 0x426d1c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x426d20
add ecx, 2
add eax, 2
test dl, dl
jne 0x426d00
xor eax, eax
jmp 0x426d25
sbb eax, eax
or eax, 1
test eax, eax
je 0x426d9c
mov edx, dword [ebp - 0x14]
mov esi, dword [esi + 4]
test esi, esi
jne 0x426cf0
push 1
push 0x30
call fcn.005414c5
push dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x24], 0
call fcn.004218a0
push dword [ebp - 4]
lea eax, [esi + 0x1c]
push eax
call fcn.004218a0
mov ecx, dword [0x5ed884]
push 0
push esi
mov dword [esi + 0xc], ecx
lea eax, [ecx + 4]
mov dword [0x5ed884], eax
call fcn.00426e10
push esi
push dword [0x5fda3c]
call fcn.00426940
mov eax, dword [0x5fda3c]
add esp, 0x28
cmp dword [eax + 0xc], 0x3e8
jge 0x426dfb
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov dword [ecx + 8], esi
test ebx, ebx
je 0x426db9
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
jmp 0x426dc1
mov ebx, ecx
mov dword [ecx + 4], ecx
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x44c]
mov dword [ecx], 0
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Module32NextW
mov esi, dword [ebp - 0x24]
mov edi, 0x41c64e6d
test eax, eax
jne 0x426c72
pop edi
pop esi
lea eax, [ebp - 0x10]
push eax
call fcn.00443880
add esp, 4
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.using_more_than_1000_module_entries
push 0x36
call fcn.004205c0
int3
Function at 0x4289b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4285e0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.004207e0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 8], 0xffffffff
push eax
mov dword [ebp - 4], 0
call fcn.00421950
add esp, 0x18
cmp dword [0x601c18], 6
jl 0x428a0c
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.sys_exec__s_
push 0x360006
call fcn.00424200
add esp, 0xc
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.00428b20
add esp, 4
test eax, eax
jns 0x428a46
cmp dword [0x601c18], 6
jl 0x428b00
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.failed_sys_exec_bg__s_
push 0x360006
call fcn.00424200
add esp, 0xc
jmp 0x428b00
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.00429c20
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dword [ebp - 0x10], eax
mov esi, eax
mov eax, dword [0x5fda4c]
test eax, eax
je 0x428a97
imul eax, eax, 0x3e8
cdq
sub eax, ecx
sbb edx, esi
add eax, ebx
adc edx, dword [ebp - 0x10]
test edx, edx
ja 0x428a92
jb 0x428a85
test eax, eax
jne 0x428a92
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
jmp 0x428aa1
mov dword [ebp - 0x14], edx
jmp 0x428aa1
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
push 1
push eax
push dword [ebp - 4]
call edi
cmp eax, 0xc0
jne 0x428abb
call fcn.00429c20
mov ecx, eax
mov esi, edx
jmp 0x428a62
pop edi
pop esi
pop ebx
test eax, eax
je 0x428ad6
push 0x16
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], 0xfffffff7
jmp 0x428af4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 8]
mov ecx, 0xffffffea
cmp eax, 3
cmove eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.00443880
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x15f8], eax
mov esp, ebp
pop ebp
ret

Function at 0x428ff0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x429060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x14
call fcn.005414c5
mov ecx, dword [ebp + 8]
mov esi, eax
push 0
push 0
push esi
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
push 0x4291e0
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x10]
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x10], 2
call fcn.00549713
add esp, 0x20
mov dword [esi], eax
pop esi
test eax, eax
je 0x4290a8
xor eax, eax
pop ebp
ret
push str.failed_create_thread:__m
push 0x360000
call fcn.00424760
int3
Function at 0x430f40
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp dword [0x5fdc84], 0
push edi
je 0x430fe2
push dword [ebp + 8]
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.00420ea0
add esp, 8
push 0x10000
push dword [eax]
push dword [0x5fdc84]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.0053b3a0
mov edi, eax
add esp, 4
test edi, edi
je 0x430fe2
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430fb4
push dword [ebp + 8]
push str.Failed_deleting_service__s:__m
push 0x550003
call fcn.00424200
add esp, 0xc
jmp 0x430fb6
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430fdc
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00424200
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x430ff9
call fcn.005414b2
mov eax, dword [eax]
sub eax, 0x424
neg eax
pop edi
sbb eax, eax
pop esi
pop ebp
ret

Function at 0x431010
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [0x5fdc84], esi
je 0x4310c4
lea eax, [ebp + 4]
sub eax, 4
push edi
push eax
call fcn.00420ea0
add esp, 8
push 0xf01ff
push dword [eax]
push dword [0x5fdc84]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.0053b3a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4310c4
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x431092
push edi
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00424200
add esp, 0xc
test eax, eax
jne 0x431095
mov esi, dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x4310d7
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00424200
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.service__s_doesnt_exist
push 0x550005
call fcn.00424200
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4310e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
or esi, 0xffffffff
cmp dword [0x5fdc84], 0
push edi
mov edi, dword [ebp + 8]
je 0x431197
lea eax, [ebp + 4]
sub eax, 4
push edi
push eax
call fcn.00420ea0
add esp, 8
push 0xf01ff
push dword [eax]
push dword [0x5fdc84]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.0053b3a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x431197
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x431165
push edi
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00424200
add esp, 0xc
test eax, eax
jne 0x431168
mov esi, dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x4311aa
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00424200
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.service__s_doesnt_exist
push 0x550005
call fcn.00424200
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431520
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x24
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x43155e
push dword [ebp + 0x10]
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00424200
add esp, 0xc
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x431800
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x1c]
lea esi, [ebp + 4]
add esi, 0xfffffffc
push esi
call fcn.00420ea0
push dword [ebp + 0xc]
push esi
mov edi, dword [eax]
call fcn.00420ea0
push dword [ebp + 8]
push esi
mov ebx, dword [eax]
call fcn.00420ea0
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [eax]
push dword [0x5fdc84]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push eax
call fcn.0053b3a0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4318e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
or edi, 0xffffffff
mov eax, dword [ebx]
test eax, eax
je 0x431900
push eax
call fcn.005414d0
add esp, 4
mov dword [ebx], 0
push 1
push 0x200
call fcn.005414c5
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 0xc]
push ecx
push 0x200
push eax
push dword [ebp + 8]
call sub.PSAPI.DLL_EnumProcessModules
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x431966
cmp dword [0x601c94], 6
jl 0x43194b
push str.EnumProcessModules_failed:__m
push 0x550006
call fcn.00424200
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x4319b4
push eax
call fcn.005414d0
add esp, 4
mov dword [ebx], 0
mov eax, edi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0xc]
shr edi, 2
cmp edi, 0x80
jb 0x4319b4
push esi
lea esi, [edi*8]
push esi
push dword [ebx]
call fcn.00547937
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
call sub.PSAPI.DLL_EnumProcessModules
push eax
call fcn.0053b370
add esp, 4
pop esi
test eax, eax
je 0x4319ba
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi]
shr ecx, 2
cmp ecx, eax
jae 0x4319c9
mov edi, ecx
mov eax, edi
pop edi
pop ebx
pop ebp
ret
push str.EnumProcessModules_2nd_failed:__m
push 0x550000
call fcn.00424760
push str.EnumProcessModules_no_space
push 0x550000
call fcn.00424760
int3

Function at 0x431ac0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x431b07
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x431b3c
push str.failed_CheckTokenMembership__:__m
push 0x550003
call fcn.00424200
add esp, 8
mov dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x431bb0
Capabilities:
Check os version

Disassembly:
mov ecx, dword [0x5eda74]
cmp ecx, 0xffffffff
jne 0x431ca7
push esi
xor esi, esi
cmp dword [0x5eda78], ecx
jne 0x431ca6
cmp dword [0x5fdc90], esi
jne 0x431bfc
push 0x5fdc90
mov dword [0x5fdc90], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x431caa
mov edx, dword [0x5fdc94]
mov eax, dword [0x5fdc98]
push edi
movzx edi, word [0x5fdda4]
cmp edx, 0xa
jg 0x431c73
jne 0x431c21
test eax, eax
jns 0x431c73
mov esi, 6
jmp 0x431c78
cmp edx, 6
jg 0x431c1a
jne 0x431c50
cmp eax, 3
jge 0x431c1a
cmp eax, 2
jge 0x431c49
cmp eax, 1
jge 0x431c42
test eax, eax
js 0x431c6c
mov esi, 3
jmp 0x431c78
mov esi, 4
jmp 0x431c78
mov esi, 5
jmp 0x431c78
cmp edx, 5
jg 0x431c6c
jne 0x431c78
cmp eax, 2
jge 0x431c6c
cmp eax, 1
jge 0x431c6c
test eax, eax
js 0x431c78
mov esi, 1
jmp 0x431c78
mov esi, 2
jmp 0x431c78
mov esi, 7
mov dword [0x5eda7c], eax
mov ecx, esi
mov eax, dword [0x5fdc9c]
mov dword [0x5eda80], eax
mov eax, dword [0x5fdca0]
mov dword [0x5eda88], edi
mov dword [0x5eda74], ecx
mov dword [0x5eda78], edx
mov dword [0x5eda84], eax
pop edi
pop esi
mov eax, ecx
ret
push str.GetVersionEx_failed__m
push 0x55
call fcn.004205c0
int3

Function at 0x431dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x5eda78]
push ebx
push esi
xor esi, esi
push edi
cmp ecx, 0xffffffff
je 0x431df9
mov edx, dword [0x5eda80]
mov esi, dword [0x5eda74]
mov eax, dword [0x5eda7c]
mov ebx, dword [0x5eda84]
mov edi, dword [0x5eda88]
mov dword [ebp - 4], edx
jmp 0x431ed4
cmp dword [0x5fdc90], esi
jne 0x431e27
push 0x5fdc90
mov dword [0x5fdc90], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x431f14
mov ecx, dword [0x5fdc94]
mov edx, dword [0x5fdc9c]
mov eax, dword [0x5fdc98]
mov ebx, dword [0x5fdca0]
movzx edi, word [0x5fdda4]
mov dword [ebp - 4], edx
cmp ecx, 0xa
jg 0x431eac
jne 0x431e5a
test eax, eax
jns 0x431eac
mov esi, 6
jmp 0x431eb1
cmp ecx, 6
jg 0x431e53
jne 0x431e89
cmp eax, 3
jge 0x431e53
cmp eax, 2
jge 0x431e82
cmp eax, 1
jge 0x431e7b
test eax, eax
js 0x431ea5
mov esi, 3
jmp 0x431eb1
mov esi, 4
jmp 0x431eb1
mov esi, 5
jmp 0x431eb1
cmp ecx, 5
jg 0x431ea5
jne 0x431eb1
cmp eax, 2
jge 0x431ea5
cmp eax, 1
jge 0x431ea5
test eax, eax
js 0x431eb1
mov esi, 1
jmp 0x431eb1
mov esi, 2
jmp 0x431eb1
mov esi, 7
mov dword [0x5eda74], esi
mov dword [0x5eda78], ecx
mov dword [0x5eda7c], eax
mov dword [0x5eda80], edx
mov dword [0x5eda84], ebx
mov dword [0x5eda88], edi
mov edx, dword [ebp + 8]
test edx, edx
je 0x431edd
mov dword [edx], esi
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x431ee6
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x431eef
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x431efb
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x431f04
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x431f0d
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.GetVersionEx_failed__m
push 0x55
call fcn.004205c0
int3