joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451354
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451366
add esp, 0xfffffff0
call fcn.00404104
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a7b8
mov eax, dword [0x474fa4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4516f8
mov eax, dword [0x474fb0]
mov dword [eax + 4], ebx
mov dword [eax], 0x451704
mov eax, ebx
call fcn.00451710
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44d1a8
push eax
push 0
push 0
mov eax, dword [0x4750f8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e2ec]
call fcn.0041fb40
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e2ec]
call fcn.0041fb40
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e2ec]
call fcn.0041fb40
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451b40
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451a10
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451a10
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451a10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4514a3
call fcn.0040415c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4517f4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45199f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451980
mov dl, 1
mov eax, dword [0x412818]
call fcn.00403db0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c0c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45196f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004447b4
test al, al
je 0x451962
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4519b0
lea eax, [ebp - 0x254]
call fcn.0040980c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451962
xor eax, eax
push ebp
push 0x45195b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4519e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451944
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e7c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451944
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451962
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451865
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416580
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4519a6
lea eax, [ebp - 0x260]
call fcn.00404c0c
ret

Function at 0x452318
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47957c]
cmp byte [eax + 0xad], 0
jne 0x452389
cmp dword [0x479594], 0
jne 0x45234a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4522d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479594], eax
cmp dword [0x479590], 0
jne 0x452365
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479590], eax
cmp dword [0x479598], 0
jne 0x452389
push esp
push 0
push 0
push 0x452278
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x479598], eax
pop edx
ret
Function at 0x45255c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452573
add esp, 0xfffffff0
call fcn.00404104
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a7b8
mov eax, dword [0x4750e4]
cmp word [eax + 2], 0
jne 0x45259b
mov eax, dword [0x4750e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004540b4
mov eax, dword [0x475188]
cmp word [eax + 2], 0
jne 0x4525b5
mov eax, dword [0x475188]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004542c0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4123f4]
call fcn.00403db0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41edfc]
call fcn.00426890
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45276c
mov eax, dword [0x47500c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426c64
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454980
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47500c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cfb0
test eax, eax
je 0x4526bc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091c4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cfe4
test eax, eax
je 0x4526d0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404e7c
mov byte [ebx + 0xd4], 0
push ebx
push 0x453bfc
call fcn.0041b934
mov dword [ebx + 0xc8], eax
mov eax, dword [0x474f08]
cmp byte [eax], 0
jne 0x452721
mov eax, ebx
call fcn.004528b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00454b5c
mov eax, ebx
call fcn.004556bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452761
call fcn.0040415c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452b30
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47957c]
cmp dword [eax + 0x30], 0
je 0x452bda
cmp dword [ebx + 0x94], 0
jne 0x452bd4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452ac0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452bd4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452b9a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452bd4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414828
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452ba9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4538f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x453929
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404cfc
jmp 0x453936
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c60
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454d40
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454dae
mov eax, esi
call fcn.0043f528
test al, al
je 0x454dae
mov eax, dword [ebx + 0x84]
call fcn.0043f22c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454dae
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x454da2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f22c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00437724
jmp 0x454dae
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454b7c
pop esi
pop ebx
ret
Function at 0x456fec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
nop
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45703a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402ed8
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x425550
push eax
mov edi, ecx
call fcn.00412efb
mov esi, eax
add esp, 8
test esi, esi
je 0x401088
push ebx
push 2
push 0
push esi
call fcn.004135cd
push esi
call fcn.004134de
push 0
push 0
push esi
mov ebx, eax
call fcn.004135cd
add esp, 0x1c
test edi, edi
je 0x40103e
mov dword [edi], ebx
test ebx, ebx
je 0x40106a
push ebx
call fcn.00413e95
mov edi, eax
add esp, 4
test edi, edi
je 0x401042
push esi
push ebx
push 1
push edi
call fcn.0041315c
push esi
call fcn.004136b6
add esp, 0x14
pop ebx
mov eax, edi
pop edi
pop esi
ret
push esi
call fcn.004136b6
add esp, 4
push 8
call fcn.00413e95
add esp, 4
test eax, eax
je 0x401073
pop ebx
pop edi
mov byte [eax], 0
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x401090
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x425550
push eax
xor bl, bl
call fcn.00412efb
mov esi, eax
add esp, 8
test esi, esi
je 0x40110f
mov ecx, dword [ebp + 8]
push edi
push 0x425558
push ecx
call fcn.00412efb
mov edi, eax
add esp, 8
test edi, edi
je 0x401105
push esi
call fcn.00412e17
add esp, 4
test eax, eax
jne 0x4010fa
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.0041315c
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.004132d0
push esi
call fcn.00412e17
add esp, 0x24
test eax, eax
je 0x4010d1
push edi
mov bl, 1
call fcn.004136b6
add esp, 4
push esi
call fcn.004136b6
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c90
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x401cb3
xor al, al
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push edi
push 0
push 0
push ecx
push 3
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x401d42
push esi
push 1
push 0
push 3
push 0
push 0
push 0x50
push str.example.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
je 0x401d3a
push ebx
push 1
push 0x400000
push 0
push 0
push 0
push 0x425582
push 0x425590
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x401d32
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401d2b
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401fb0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
push 0
lea ecx, [ebp - 0x418]
push ecx
mov edi, edx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x418], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x402006
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412e08
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 0x405], 0
call fcn.0041405a
mov eax, dword [0x42bf94]
add esp, 4
push 0
push 0
test eax, eax
je 0x402028
push eax
push 3
jmp 0x40202c
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x40212e
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x414], esi
test esi, esi
je 0x402121
mov edx, dword [ebp - 0x410]
push 1
push 0x400000
push 0
push 0
push 0
push edx
push 0x425590
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x40211a
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x402113
push 0x425558
push ebx
mov byte [ebp - 0x405], 1
call fcn.00412efb
mov esi, eax
add esp, 8
test esi, esi
je 0x40210d
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x410]
push eax
push 0x3ff
lea ecx, [ebp - 0x404]
push ecx
push edi
call ebx
test eax, eax
je 0x402104
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x402104
push esi
push eax
lea edx, [ebp - 0x404]
push 1
push edx
mov byte [ebp + eax - 0x404], 0
call fcn.004132d0
add esp, 0x10
jmp 0x4020c3
push esi
call fcn.004136b6
add esp, 4
mov esi, dword [ebp - 0x414]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x405]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret
Function at 0x402520
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1a8
call fcn.00413e95
mov esi, eax
add esp, 4
test esi, esi
je 0x402524
push esi
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
js 0x4025b4
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 0x190], eax
cmp eax, 0xffffffff
je 0x4025b4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [esi + 0x1a4], eax
test eax, eax
je 0x4025b4
push edi
mov ecx, 2
mov word [esi + 0x194], cx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edi, [esi + 0x194]
push edx
mov dword [esi + 0x198], ecx
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
mov word [esi + 0x196], ax
mov eax, dword [esi + 0x190]
push edi
push eax
call dword [sym.imp.WSOCK32.dll_connect]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4027a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x4027bd
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4027f0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4027f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4027ff
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 4]
mov dword [ebp - 8], ebx
push ebx
call fcn.00413e95
mov esi, eax
add esp, 4
test esi, esi
je 0x402806
test ebx, ebx
je 0x40282c
mov ecx, dword [ebp - 4]
sub ecx, esi
mov edx, ebx
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x402820
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402846
mov dword [eax], ebx
pop ebx
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4031c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call section..text
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
jne 0x4031e6
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031f2
sub eax, edx
mov esi, eax
je 0x40325a
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x40325a
lea eax, [edx - 1]
cmp esi, eax
ja 0x40325a
mov byte [ebp - 1], cl
sub edx, esi
xor ecx, ecx
dec edx
mov dword [ebp - 0x14], edx
je 0x40325a
jmp 0x403223
mov edi, dword [ebp - 8]
xor eax, eax
test esi, esi
je 0x403240
add edi, ecx
jmp 0x403230
mov dl, byte [edi + eax]
cmp dl, byte [eax + ebx]
jne 0x403249
inc eax
cmp eax, esi
jb 0x403230
mov edx, dword [ebp - 0x14]
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], ecx
jmp 0x40324c
mov edx, dword [ebp - 0x14]
inc ecx
cmp ecx, edx
jb 0x403220
cmp byte [ebp - 1], 0
jne 0x40326c
mov edi, dword [ebp - 8]
push edi
call fcn.00413e5b
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0x425558
push eax
call fcn.00412efb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40337e
cmp byte [ebp + 0x10], 0
jne 0x4032a7
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403293
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
sub eax, edx
lea esi, [eax + ecx]
jmp 0x4032ac
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp esi, edi
jae 0x4032c9
mov edx, dword [ebp - 8]
push ebx
push 1
lea eax, [esi + edx]
push 1
push eax
call fcn.004132d0
inc esi
add esp, 0x10
cmp esi, edi
jb 0x4032b0
push ebx
call fcn.004136b6
mov ecx, dword [ebp - 8]
push ecx
call fcn.00413e5b
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x403375
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov esi, eax
test esi, esi
je 0x403319
push 0
push 0
push 0
push 1
push 0x10
push esi
call ebx
test eax, eax
je 0x403319
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [ebp + 0xc]
push 0
push eax
call edi
mov esi, eax
test esi, esi
je 0x403341
push 0
push 0
push 0
push 1
push 0x18
push esi
call ebx
test eax, eax
je 0x403341
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x403369
push 0
push 0
push 0
push 1
push 3
push esi
call ebx
test eax, eax
je 0x403369
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402bb0
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call fcn.00413e5b
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4033a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
test ebx, ebx
je 0x4034f2
lea eax, [ebp - 0x134]
push eax
push ebx
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4034eb
lea ebx, [ebx]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403400
sub eax, edx
lea esi, [eax + 1]
lea esp, [esp]
push esi
call fcn.00413e95
mov edi, eax
add esp, 4
test edi, edi
je 0x403410
lea eax, [ebp - 0x110]
mov edx, edi
mov ecx, eax
sub edx, ecx
jmp 0x403430
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403430
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403440
sub eax, edx
mov edx, eax
mov ecx, 0
je 0x403467
mov al, byte [ecx + edi]
cmp al, 0x41
jl 0x403462
cmp al, 0x5a
jg 0x403462
add al, 0x20
mov byte [ecx + edi], al
inc ecx
cmp ecx, edx
jb 0x403452
mov ecx, dword [ebp + 8]
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403490
test dl, dl
je 0x40348c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403490
add eax, 2
add ecx, 2
test dl, dl
jne 0x403470
xor eax, eax
jmp 0x403495
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4034cc
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4034cc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4034c5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00413e5b
add esp, 4
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4033f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret

Function at 0x403680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4036d2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4036c8
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret