joyce8/EMBER2024-capa huggingface dataset:
Function at 0x586f6b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60c9f8
push eax
mov al, byte [0x1b06220]
mov dword fs:[0], esp
sub esp, 0x14
test al, 1
push ebp
push esi
push edi
mov esi, ecx
jne 0x586dfe
mov dl, al
push 0x587030
or dl, 1
mov byte [0x1b06220], dl
call fcn.004aeae3
add esp, 4
mov al, byte [0x1b06220]
test al, 2
jne 0x586e1f
mov dl, al
push 0x587020
or dl, 2
mov byte [0x1b06220], dl
call fcn.004aeae3
add esp, 4
mov eax, dword [0x1aa9b40]
mov dword [esp + 0xc], eax
mov ecx, dword [0x1b06210]
mov eax, dword [0x1b06218]
test ecx, ecx
mov dword [esp + 0x28], 0
jne 0x586eb9
test eax, eax
jne 0x586eb9
mov edx, dword [0x1b06214]
test edx, edx
jne 0x586eb9
mov edx, dword [0x1b0621c]
test edx, edx
jne 0x586eb9
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.005d875e
mov edx, dword [esi + 0x1c]
mov ebp, dword [0x6138a8]
push 0x1b06210
push edx
mov edi, eax
call ebp
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov edx, dword [0x1b06214]
mov ecx, dword [0x1b06210]
mov eax, dword [0x1b06218]
mov dword [0x1b06204], edx
mov edx, dword [0x1b0621c]
mov dword [0x1b06200], ecx
mov dword [0x1b0620c], edx
mov edx, dword [esp + 0x14]
mov dword [0x1b06208], eax
mov dword [0x1b0620c], edx
mov edx, dword [esp + 0x34]
push 6
test edx, edx
je 0x586f4b
mov edx, dword [0x1b0621c]
mov ebp, dword [0x1b06214]
sub edx, ebp
sub eax, ecx
push edx
push eax
push 0
push 0
push 0x1b04de8
mov ecx, esi
call fcn.005d8a3f
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005da3a1
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1aaf100
push ecx
call fcn.005d3bb2
push 0x1aaf0fc
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 1
call fcn.005d3b3e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005d39e2
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.005d38a9
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
jmp 0x586fd4
mov eax, dword [0x1b0620c]
mov edi, dword [0x1b06204]
mov ecx, dword [0x1b06200]
sub eax, edi
push eax
mov eax, dword [0x1b06208]
sub eax, ecx
mov ecx, esi
push eax
push 0
push 0
push 0x1b04de8
call fcn.005d8a3f
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005da3a1
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1aaf100
push ecx
call fcn.005d3bb2
push 0x1aaf0f8
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.005d3b3e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.005d39e2
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.005d38a9
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.005d38a9
mov ecx, esi
call fcn.005b3ba0
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 3
call fcn.005d881d
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005d38a9
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x58e1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60d128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esi], 0x1a51894
mov dword [0x1b06228], ebx
call fcn.005db91e
mov eax, dword [edi + 0x1a4]
push ebx
mov dword [esi + 4], eax
mov edi, dword [edi + 0x1a0]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x30], 0
mov dword [esi + 8], edi
call fcn.0058e330
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005db990
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x58eaf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x60d208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push edi
mov eax, dword [esi]
lea edx, [esp + 0x14]
xor ebx, ebx
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], ebx
call dword [eax + 0x14c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x34], ebx
call fcn.005d361e
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 1
cmp byte [eax], 0x40
jne 0x58eb7e
mov eax, dword [eax - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005cf6cd
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.005d39e2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.005d38a9
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x20
jle 0x58eb88
mov byte [esp + 0x3c], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x130]
mov ebp, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x24], eax
call dword [edx + 0x164]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
setne byte [esp + 0x3c]
call dword [eax + 0x148]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov byte [edx + 0x14], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov byte [edx + 0x15], bl
mov byte [edx + 0x16], bl
mov byte [edx + 0x17], 1
mov byte [edx + 0x18], bl
mov byte [edx + 0x19], bl
mov byte [edx + 0x1a], bl
mov byte [edx + 0x1b], bl
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x1c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x3c], esi
mov esi, edi
mov edi, dword [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
mov byte [esp + 0x30], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [edx], ebp
mov dword [edx + 4], ecx
lea ecx, [esp + 0x10]
mov dword [edx + 0x10], eax
call fcn.005d38a9
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.005d38a9
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x5b0840
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x60f908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0xc]
mov dword [esp + 0x24], 0
mov ecx, edi
call fcn.004eda10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
lea edx, [esp + 0x34]
lea eax, [esp + 0xc]
mov dword [esi + 8], ecx
push edx
push eax
mov ecx, edi
mov dword [esi], 0x1a544e0
call fcn.004eda30
mov ecx, dword [esp + 0x40]
mov eax, esi
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x5e8cdd
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x61172b
call fcn.004b1188
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005da92b
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1aa9b40]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], 0x1a5902c
call fcn.005d3a32
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.005d3a32
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x401a70
Capabilities:
Parse pe header

Disassembly:
push ecx
push edi
mov edi, eax
mov eax, dword [esp + 0xc]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x401a87
xor eax, eax
pop edi
pop ecx
ret
push ebp
mov ebp, dword [eax + 0x3c]
add ebp, eax
cmp dword [ebp], 0x4550
je 0x401a9c
pop ebp
xor eax, eax
pop edi
pop ecx
ret
mov edx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x34]
mov ecx, dword [edi + 0xc]
push ebx
push 4
push 0x2000
push edx
push eax
call ecx
mov ebx, eax
test ebx, ebx
jne 0x401ad3
mov edx, dword [ebp + 0x50]
push 4
push 0x2000
push edx
push eax
mov eax, dword [edi + 0xc]
call eax
mov ebx, eax
test ebx, ebx
jne 0x401ad3
pop ebx
pop ebp
pop edi
pop ecx
ret
mov ecx, dword [edi + 0x1c]
push esi
push 0x14
push 0
call ecx
mov edx, dword [edi + 0x18]
push eax
call edx
mov ecx, dword [edi + 0xc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x50]
push 0x1000
push eax
push ebx
call ecx
mov edx, dword [ebp + 0x54]
mov eax, dword [edi + 0xc]
push 4
push 0x1000
push edx
push ebx
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [esp + 0x10], eax
push edx
push ecx
push eax
call fcn.0040bce0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x3c]
mov edx, dword [esp + 0x1c]
push esi
add eax, edx
push ebp
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00401700
mov eax, ebx
add esp, 0x18
sub eax, dword [ebp + 0x34]
je 0x401b5a
push eax
mov eax, esi
call fcn.004019f0
add esp, 4
push esi
push edi
call fcn.004018c0
add esp, 8
test eax, eax
je 0x401b8a
push esi
push edi
call fcn.004017b0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 8
test eax, eax
je 0x401b99
add eax, ebx
je 0x401b8a
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x401b92
pop esi
pop ebx
pop ebp
xor eax, eax
pop edi
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop ebp
pop edi
pop ecx
ret
Function at 0x401f90
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4203c0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push 0xf003f
push 0
mov ebx, ecx
push 0
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x402008
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
add ebx, 4
push ebx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x402021
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040a50c
add esp, 0x218
ret
push esi
push edi
mov ecx, 0xe
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [esp + 0x124]
mov eax, ebx
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402042
lea edi, [esp + 0x124]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402053
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x128]
push eax
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40209b
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
push ebp
call esi
xor eax, eax
jmp 0x402116
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4020a2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push 2
push 0
push str.EventMessageFile
push eax
call esi
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.TypesSupported
push edx
mov dword [esp + 0x30], 7
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x1c]
push 0x64
push 4
mov eax, ebx
call fcn.004021b0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
push ebp
call esi
mov eax, 1
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a50c
add esp, 0x218
ret

Function at 0x4021b0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
test eax, eax
je 0x4021d3
mov esi, 1
cmp dword [edi + 0x74], 0
jne 0x4021e8
lea eax, [edi + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x74]
test eax, eax
je 0x40220e
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push esi
push 0
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop esi
add esp, 0xc
ret 8
Function at 0x402300
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
push str.Entering_CNTService::Initialize__
mov ecx, esi
call fcn.004026e0
mov eax, dword [esi + 0x4c]
push 2
push eax
push str.CNTService::SetStatus__lu___lu_
mov ecx, esi
call fcn.004026e0
mov ecx, dword [esi + 0x4c]
add esp, 0x10
lea ebx, [esi + 0x50]
push ebx
push ecx
mov dword [esi + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
cmp edi, ebp
jne 0x4023c7
cmp dword [esi + 0x74], ebp
jne 0x40237b
lea ecx, [esi + 4]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x74]
cmp eax, ebp
je 0x402397
push ebp
lea edx, [esp + 0x10]
push edx
push ebp
push ebp
push ebp
push 0x68
push ebp
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [esi + 0x4c]
push 1
push eax
push str.CNTService::SetStatus__lu___lu_
mov ecx, esi
call fcn.004026e0
mov ecx, dword [esi + 0x4c]
add esp, 0xc
push ebx
push ecx
mov dword [esi + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp dword [esi + 0x74], ebp
jne 0x4023da
lea edx, [esi + 4]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x74]
cmp eax, ebp
je 0x4023f6
push ebp
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
push ebp
push 0x69
push ebp
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esi + 0x4c]
push 4
push edx
push str.CNTService::SetStatus__lu___lu_
mov ecx, esi
call fcn.004026e0
mov eax, dword [esi + 0x4c]
add esp, 0xc
push ebx
push eax
mov dword [esi + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push str.Leaving_CNTService::Initialize__
mov ecx, esi
call fcn.004026e0
add esp, 4
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret

Function at 0x4026e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x4203c0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
add esi, 4
push esi
lea eax, [esp + 0xc]
push str.__s___lu_:
push eax
call fcn.0040a8f2
add esp, 0x10
lea eax, [esp + 4]
lea edx, [eax + 1]
pop esi
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402720
push edi
sub eax, edx
mov edx, dword [esp + 0x40c]
lea ecx, [esp + 0x410]
push ecx
push edx
lea eax, [esp + eax + 0xc]
push eax
call fcn.0040af5f
lea edi, [esp + 0x10]
add esp, 0xc
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402750
mov cx, word [0x41d678]
lea edx, [esp + 4]
push edx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
call fcn.0040a50c
add esp, 0x404
ret
Function at 0x4027e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 7
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402807
xor eax, eax
pop esi
pop ecx
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0xc], eax
call fcn.0040b246
mov edi, eax
add esp, 4
test edi, edi
jne 0x402831
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x40285f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b169
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dword [eax], edi
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret
Function at 0x403390
Capabilities:
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41e560
push 0x40ecd0
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x4203c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x360], 2
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x364], ebx
mov byte [ebp - 0x12c], bl
push 0x103
push ebx
lea ecx, [ebp - 0x12b]
push ecx
call fcn.0040c050
mov byte [ebp - 0x234], bl
push 0x103
push ebx
lea edx, [ebp - 0x233]
push edx
call fcn.0040c050
mov dword [ebp - 0x35c], ebx
push 0x124
push ebx
lea eax, [ebp - 0x358]
push eax
call fcn.0040c050
add esp, 0x24
mov dword [ebp - 4], ebx
push 0x104
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x12c]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x403450
mov edx, dword [str.explorer.exe]
mov dword [eax], edx
mov ecx, dword [0x41d7b4]
mov dword [eax + 4], ecx
mov edx, dword [0x41d7b8]
mov dword [eax + 8], edx
mov cx, word [0x41d7bc]
mov word [eax + 0xc], cx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x364], eax
cmp eax, 0xffffffff
je 0x4034e3
mov dword [ebp - 0x35c], 0x128
lea edx, [ebp - 0x35c]
push edx
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4034e3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ebp - 0x354]
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x368], esi
cmp esi, ebx
je 0x403566
push str.PSAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x4034f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x360], eax
jmp 0x403581
push str.GetModuleFileNameExA
push eax
call edi
push 0x104
lea ecx, [ebp - 0x234]
push ecx
push ebx
push esi
call eax
test eax, eax
je 0x403557
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040a8a0
add esp, 8
test eax, eax
jne 0x403557
lea ecx, [ebp - 0x36c]
push ecx
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403581
mov edx, dword [ebp - 0x36c]
mov eax, dword [ebp - 0x370]
mov dword [eax], edx
mov dword [ebp - 0x360], ebx
jmp 0x403581
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x368], esi
lea ecx, [ebp - 0x35c]
push ecx
mov edx, dword [ebp - 0x364]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4034b1
mov dword [ebp - 4], 0xfffffffe
call fcn.004035b9
mov eax, dword [ebp - 0x360]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0040a50c
mov esp, ebp
pop ebp
ret 4
Function at 0x4035e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
push esi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call fcn.00403390
push 0x40
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0040c050
add esp, 0xc
xor edx, edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
push edx
push 0x30
push edx
push edx
push edx
push edx
mov word [esp + 0x6c], dx
mov edx, dword [esp + 0x28]
push 0x4220b8
push edx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x403658
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x60
ret

Function at 0x403670
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4203c0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebx + 4]
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4036a1
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4036b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4036d0
mov ecx, dword [str.Parameters]
mov edx, dword [0x41d81c]
mov dword [eax], ecx
mov ecx, dword [0x41d820]
mov dword [eax + 4], edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [eax + 8], ecx
push 0
lea eax, [esp + 0x24]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403769
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [ebx + 0x78]
push edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.Start
mov edi, 4
push ecx
mov dword [esp + 0x28], edi
call esi
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [ebx + 0x7c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x41d82c
push edx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx + 0x78]
pop edi
mov dword [ebx + 0x80], ecx
mov ecx, dword [esp + 0x414]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040a50c
add esp, 0x410
ret