joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b1f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0047b340
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x47b210
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x47b1f1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0047b340
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x47b210
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x47b240
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x47b297
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x47b2ad
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0047b2d0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x47b2d0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x47b360
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47b3a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x47b820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4be970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047b3d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047b450
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047b450
lea ecx, [esi + 0xc]
call fcn.004aee50
lea ecx, [esi + 0x10]
call fcn.004aee50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047dc80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047dc80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047dc80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004aeec5
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004aeec5
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x47c4c8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4beb98
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x47c4d8
call fcn.0047c9f0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x47c5bb
cmp byte [edi], 0
je 0x47c5bb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x47c4fd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0047b1f0
test eax, eax
jne 0x47c51d
push 0x5f3a18
lea ecx, [esi + 0x38]
call fcn.004af002
jmp 0x47c5bb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0047b240
test eax, eax
jne 0x47c54c
mov ecx, esi
call fcn.0047b340
push edi
add esi, 0x38
push 0x5f39f4
push esi
call fcn.004ac8b8
add esp, 0xc
jmp 0x47c5bb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0047d270
test eax, eax
je 0x47c5b4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0047c690
test eax, eax
jne 0x47c5d0
push edi
lea eax, [esi + 0x38]
push 0x5f39d0
push eax
call fcn.004ac8b8
add esp, 0xc
mov ecx, esi
call fcn.0047c9f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x47c678
mov ecx, dword [0x5f9548]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004ac8b8
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0047b2f0
test eax, eax
jne 0x47c63a
push 0x5f39b4
lea ecx, [esi + 0x38]
call fcn.004af002
jmp 0x47c64a
push 0xfa
mov ecx, esi
call fcn.0047d270
test eax, eax
jne 0x47c667
mov ecx, esi
call fcn.0047c9f0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004aeec5
jmp 0x47c5bb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004aeec5
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x484ba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x484bec
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x484bec
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x484bd6
push eax
call ebp
test ax, ax
jl 0x484be4
inc esi
add edi, 4
cmp esi, 6
jb 0x484bc8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004848a0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x488a40
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x488aa0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x488aa0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x488aa0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x488aa0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x488ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4a4f00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c03c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00499cf2
mov eax, dword [0x5d88d8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00499c24
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004a5a30
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4a4fa7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a4f9e
cmp al, 0xff
je 0x4a4f9e
dec al
mov byte [ecx], al
jmp 0x4a4fa7
push ecx
call fcn.004aec2f
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4a4fd8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a4fcf
cmp al, 0xff
je 0x4a4fcf
dec al
mov byte [ecx], al
jmp 0x4a4fd8
push ecx
call fcn.004aec2f
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4b1293
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b12cb
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.004af320
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004af2f8
jmp 0x4b12d7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b2986
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 0x4b29c8
call fcn.004b8725
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b29c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b29bf
xor eax, eax
jmp 0x4b29d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b29d6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b8c55
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 0x4b8c83
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b8ca1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b8bbb
jmp 0x4b8ca1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b8ca1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b8bbb
test edi, edi
mov eax, edi
jne 0x4b8c8b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4066df
pop dword [ebp - 0x38]
mov eax, 0x11392e5
sub eax, 0xd32c06
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3c446
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x4e70
mov edx, eax
mov ebx, 0x44c600
add ebx, dword [ebp - 0x38]
mov edi, 0x1f6a805e
add edi, 0xa9578fbe
xor dword [ebp - 0x18], 0x2dbacb71
mov esi, dword [ebx]
add dword [ebp - 0x30], eax
sub esi, edi
sub dword [ebp - 0x34], 0x4f1de2f8
mov dword [edx], esi
add edx, 0x81d3bde9
sub edx, 0x81d3bde5
add ebx, 0xc715fec8
sub ebx, 0xc715fec4
loop 0x40672d
add eax, 0x12c93
mov ebx, eax
add eax, 0x40132d89
add eax, 0xbfecd27c
mov ecx, 0x8e71c4ac
add ecx, 0x71ce3b54
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414fef
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x84], ebx
mov dword [0x41df40], ebx
xor esi, esi
mov dword [ebp - 4], esi
lea edi, [ebx + 0x38]
lea eax, [edi + 4]
mov dword [ebx], str.blyy
mov dword [ebx + 4], str.blyy.exe
mov dword [ebx + 8], str.YySRV.exe
mov dword [ebx + 0xc], 0x418320
mov dword [ebx + 0x10], str.PlayerUpdate.exe
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x30], 0xa
mov word [ebx + 0x34], si
mov byte [ebx + 0x36], 0
mov dword [edi], eax
mov byte [eax], 0
lea ecx, [ebx + 0x80]
lea eax, [ecx + 4]
mov dword [ebx + 0x7c], esi
mov dword [ebp - 0x6c], ecx
mov dword [ecx], eax
mov byte [eax], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
mov dword [ebx + 0xc4], 0x1010101
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x16]
movzx edx, word [ebp - 0x18]
movzx eax, word [ebp - 0x1a]
push ecx
movzx ecx, word [ebp - 0x1e]
push edx
movzx edx, word [ebp - 0x20]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
call fcn.00403230
add esp, 0x18
push ebx
call fcn.00401170
push 0xa0
call fcn.00408cdc
add esp, 4
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
cmp eax, esi
je 0x401102
push eax
call fcn.00403580
jmp 0x401104
xor eax, eax
lea esi, [ebp - 0x68]
mov dword [ebx + 0x7c], eax
call fcn.00401600
mov esi, dword [ebp - 0x6c]
call fcn.00402e00
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x40112a
push eax
call fcn.00409271
add esp, 4
xor eax, eax
push eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push edx
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x7c], 1
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408a5e
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x15c], edi
lea eax, [ebp - 0x154]
mov esi, ecx
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401568
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x160], eax
cmp eax, edi
jle 0x401568
push eax
call fcn.00408a53
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x164]
add esp, 4
mov ebx, eax
push ebx
push ecx
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40155f
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x15c]
push edx
push 0x418384
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40155f
mov eax, dword [ebp - 0x15c]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
lea edi, [ebp - 0x158]
call fcn.00403230
push ebx
call fcn.00408c80
add esp, 0x18
mov eax, edi
push eax
call fcn.00402bd0
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x154]
cmp eax, ecx
jmp 0x4015cd
push ebx
call fcn.00408c80
add esp, 4
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
mov eax, dword [ebp - 0x158]
mov ebx, eax
cmp eax, edi
jne 0x401581
mov ebx, 0x4183d2
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401586
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x4015ac
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.00409541
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
push ebx
push eax
call fcn.00409257
mov ecx, dword [esi]
mov byte [edi + ecx], 0
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
add esp, 0xc
cmp eax, edx
je 0x4015d8
push eax
call fcn.00409271
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408a5e
mov esp, ebp
pop ebp
ret
Function at 0x401600
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040d3c0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x26
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401670
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401681
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4016a8
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.00409541
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.00409257
mov edx, dword [esi]
add esp, 0xc
push 0x418384
mov eax, esi
mov byte [edi + edx], 0
call fcn.00402c60
push str.blyy
mov eax, esi
call fcn.00402c60
cmp byte [ebx + 0x14], 0
pop edi
je 0x4016eb
mov eax, dword [ebx + 0x38]
push eax
mov eax, esi
call fcn.00402c60
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00408a5e
mov esp, ebp
pop ebp
ret
Function at 0x4020d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.004104e0
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40211d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408a5e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x4021a4
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00408ae0
add esp, 8
test eax, eax
jne 0x4021b9
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x402135
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408a5e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408a5e
mov esp, ebp
pop ebp
ret 4

Function at 0x4021e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402226
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402236
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408a5e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402284
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408a5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00408a5e
mov esp, ebp
pop ebp
ret