joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cf44
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4551b4]
cmp byte [eax + 0xc], 0
je 0x43d0b1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d0aa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x456b90], 0
jne 0x43cf98
push 0x43d0b8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d0c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b90], eax
cmp dword [0x454b7c], 0
jne 0x43d093
push 0x43d0d0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x454b7c], eax
cmp dword [0x454b7c], 0
je 0x43d093
push 0x43d0dc
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b94], eax
push 0x43d0ec
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b98], eax
push 0x43d100
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b9c], eax
push 0x43d118
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456ba0], eax
push 0x43d130
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456ba4], eax
push 0x43d144
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456ba8], eax
push 0x43d15c
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bac], eax
push 0x43d174
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bb0], eax
push 0x43d190
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bb4], eax
push 0x43d19c
mov eax, dword [0x454b7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d0b1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x440f3c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404364
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x440f8b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004045d4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4486a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4486f0]
test si, 4
je 0x4486b4
or bl, 1
test si, 8
je 0x4486be
or bl, 4
test si, 1
je 0x4486c8
or bl, 8
test si, 2
je 0x4486d2
or bl, 0x10
test si, 0x10
je 0x4486dc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4486eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4486f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44872c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44870d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44871c
or bl, 4
test esi, 0x20000000
je 0x448727
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44edd4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ede6
add esp, 0xfffffff0
call fcn.00403938
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419850
mov eax, dword [0x454e80]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f178
mov eax, dword [0x454e8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f184
mov eax, ebx
call fcn.0044f190
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b48]
call fcn.004035e4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b48]
call fcn.004035e4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b48]
call fcn.004035e4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b48]
call fcn.004035e4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b48]
call fcn.004035e4
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, 0x44b5ac
push eax
push 0
push 0
mov eax, dword [0x454fd0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b2a4]
call fcn.0041ca18
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b2a4]
call fcn.0041ca18
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b2a4]
call fcn.0041ca18
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f5b0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f48c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f48c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f48c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ef23
call fcn.00403990
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f270
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 0x44f41b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f3fc
mov dl, 1
mov eax, dword [0x411f64]
call fcn.004035e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404364
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f3eb
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.0043d2a4
test al, al
je 0x44f3de
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, 0x44f42c
lea eax, [ebp - 0x254]
call fcn.00408ed8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f3de
xor eax, eax
push ebp
push 0x44f3d7
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 0x44f464
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f3c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045d4
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 0x44f3c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f3de
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f2e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415a40
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 0x44f422
lea eax, [ebp - 0x260]
call fcn.00404364
ret

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

Disassembly:
push ecx
mov eax, dword [0x456bdc]
cmp byte [eax + 0xa5], 0
jne 0x44fdc1
cmp dword [0x456bf4], 0
jne 0x44fd82
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44fd0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x456bf4], eax
cmp dword [0x456bf0], 0
jne 0x44fd9d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x456bf0], eax
cmp dword [0x456bf8], 0
jne 0x44fdc1
push esp
push 0
push 0
push 0x44fcb0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x456bf8], eax
pop edx
ret
Function at 0x44feb8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44fecf
add esp, 0xfffffff0
call fcn.00403938
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419850
mov eax, dword [0x454fbc]
cmp word [eax + 2], 0
jne 0x44fef7
mov eax, dword [0x454fbc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451590
mov eax, dword [0x455068]
cmp word [eax + 2], 0
jne 0x44ff11
mov eax, dword [0x455068]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451788
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b48]
call fcn.004035e4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b48]
call fcn.004035e4
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bd84]
call fcn.004230fc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450098
mov eax, dword [0x454ee0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004234cc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451d28
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x454ee0]
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.0040c5a8
test eax, eax
je 0x450006
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088cc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5d0
test eax, eax
je 0x45001a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045d4
mov eax, dword [0x454dd4]
cmp byte [eax], 0
jne 0x45004e
mov eax, ebx
call fcn.004501c0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00451f04
mov eax, ebx
call fcn.004528c8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45008e
call fcn.00403990
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450440
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x456bdc]
cmp dword [eax + 0x30], 0
je 0x4504ea
cmp dword [ebx + 0x94], 0
jne 0x4504e4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4503d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4504e4
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 0x4504aa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4504e4
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.00413eb0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4504b9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45104c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451081
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.00404454
jmp 0x45108e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043b8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4520e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452121
mov eax, esi
call fcn.00438964
test al, al
je 0x452121
mov eax, dword [ebx + 0x84]
call fcn.0043868c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452121
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043868c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x40158e
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00401a40
call sym.___main
call sym.heapsort__
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 4
jg 0x4015eb
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + section..data]
mov dword [esp + 4], eax
mov dword [esp], 0x4030db
call sym._printf
lea eax, [ebp - 4]
inc dword [eax]
jmp 0x4015c4
mov dword [esp], str.pause
call sub.msvcrt.dll_system
mov eax, 0
leave
ret

Function at 0x401bf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x432d7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x440ee5
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042e728
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00434024
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x432e8d
push esi
call fcn.0042e7d8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0042d934
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x432e64
xor eax, eax
jmp 0x432f16
push esi
call fcn.0042e7d8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0042e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0042e657
add esp, 0xc
jmp 0x432ecf
mov edi, ebx
mov edi, dword [edi + 0x24]
push edi
call fcn.0042e7d8
pop ecx
push eax
push esi
call fcn.0042e7d8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0042e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0042d954
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x432ecf
xor eax, eax
jmp 0x432f16
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042e728
add esp, 8
push 0x440ee7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042e728
add esp, 8
push 0x440ee9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042e728
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4362c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4362f5
jmp 0x43632c
call fcn.00436278
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0042e7d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0042e7d8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40338c], eax
mov eax, dword [ebp + 4]
mov dword [0x403210], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403210]
mov dword [ebp - 0x48], eax
mov eax, 0x4016c9
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403210]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4033d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4033d8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret
Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
xor edi, edi
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x88], 0x58
mov dword [ebp - 0x8c], 0x23fb
jmp 0x401384
mov dword [ebp - 0x90], 0x1a
mov dword [ebp - 0x94], 0x1fcd
jmp 0x40134e
mov eax, dword [ebp - 0x94]
or eax, eax
jl 0x4012fd
cmp eax, dword [0x4040e0]
jge 0x4012fd
cmp byte [eax + 0x4040e4], 0x2f
jle 0x401360
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
jmp 0x40132e
mov eax, dword [ebp - 0x98]
or eax, eax
jl 0x401327
cmp eax, dword [0x4040e0]
jge 0x401327
cmp byte [eax + 0x4040e4], 5
jge 0x401344
sub dword [ebp - 0x98], 0x61
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x94]
jle 0x401344
cmp eax, dword [0x4040e0]
jl 0x40130b
add dword [ebp - 0x94], 0x322
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x88]
jge 0x401360
or eax, eax
jg 0x4012e1
add dword [ebp - 0x90], 0x26f
cmp dword [ebp - 0x90], 0x1088
jl 0x4012d5
add dword [ebp - 0x8c], 0x483
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x88]
jge 0x40139a
or eax, eax
jg 0x4012cb
add dword [ebp - 0x88], 0x207
cmp dword [ebp - 0x88], 0x1a01
jl 0x4012bc
call fcn.00401ffd
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00402418]
mov edx, dword [0x4040dc]
sub edx, eax
push edx
push dword [0x4040d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401524
mov dword [ebp - 0x8c], 0x11a1
mov dword [ebp - 0x90], 0x51a
mov eax, dword [ebp - 0x90]
or eax, eax
jl 0x401424
cmp eax, dword [0x4040e0]
jge 0x401424
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xe3
je 0x4014cd
mov dword [ebp - 0x94], 0xc1b
jmp 0x4014a0
mov eax, dword [ebp - 0x94]
or eax, eax
jl 0x40144c
cmp eax, dword [0x4040e0]
jge 0x40144c
cmp byte [eax + 0x4040e4], 0x52
jle 0x4014b6
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
jmp 0x401485
mov eax, dword [ebp - 0x98]
or eax, eax
jl 0x40147b
cmp eax, dword [0x4040e0]
jge 0x40147b
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0x89
jge 0x401496
add dword [ebp - 0x98], 0x144
mov eax, dword [ebp - 0x98]
cmp eax, 0x1279
jge 0x401496
or eax, eax
jg 0x40145a
add dword [ebp - 0x94], 0x127
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x90]
jge 0x4014b6
or eax, eax
jg 0x401430
add dword [ebp - 0x90], 0xffffff4b
cmp dword [ebp - 0x90], 0x44
jg 0x4013ff
add dword [ebp - 0x8c], 0xffffff0d
cmp dword [ebp - 0x8c], 0x1d
jg 0x4013f5
push edi
call fcn.00401d1d
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401e13
mov eax, edi
add eax, 0x1ca00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
dec edx
and eax, edx
push eax
push 0x4040e4
call fcn.00402418
add esp, 0x18
xor eax, eax
pop edi
leave
ret
Function at 0x401b8e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, esi
add eax, 0xc8
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov edx, eax
add edx, edi
mov eax, edx
mov ecx, dword [ebp - 4]
cdq
idiv ecx
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
jmp 0x401cf6
mov edi, dword [ebp - 8]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
add edi, eax
imul edi, dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jne 0x401c01
mov eax, dword [ebp + 0xc]
add eax, esi
mov edx, dword [ebp - 8]
mov ecx, esi
inc ecx
imul edx, ecx
imul edx, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401d18
and dword [ebp - 0x10], 0
push esi
call fcn.00401529
mov dword [ebp - 0x18], eax
mov edi, eax
mov edx, dword [ebp - 0x14]
xor edx, esi
mov dword [ebp - 0x2c], edx
mov ecx, edi
mov edx, esi
sar edx, cl
mov eax, edi
sub eax, edx
mov edi, dword [ebp - 4]
mov ecx, esi
shl edi, cl
cdq
idiv edi
mov edi, dword [ebp - 0x2c]
add edi, edx
mov dword [ebp - 0x1c], edi
mov eax, edi
movzx eax, byte [ebx + eax]
or eax, esi
mov byte [ebp - 0x26], al
push esi
call fcn.00401529
add esp, 8
mov dword [ebp - 0x20], eax
mov edi, eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov ecx, esi
mov eax, dword [ebp - 0x30]
mov edx, eax
sar edx, cl
mov dword [ebp - 0x38], edx
mov ecx, edi
or cl, 1
mov edx, esi
imul edx, ecx
mov eax, edi
sub eax, edx
mov edi, dword [ebp - 0x34]
mov ecx, edi
mov edi, esi
shl edi, cl
mov edx, dword [ebp - 0x34]
mov ecx, edx
add ecx, edi
cdq
idiv ecx
mov edi, dword [ebp - 0x38]
add edi, edx
mov dword [ebp - 0x24], edi
movzx eax, byte [ebx + edi]
mov ecx, esi
inc ecx
xor edx, edx
div ecx
mov dword [ebp - 0x3c], eax
mov edi, eax
mov edx, edi
mov byte [ebp - 0x25], dl
mov eax, dword [ebp - 0x24]
movzx edx, byte [ebp - 0x26]
mov ecx, esi
dec ecx
and edx, ecx
mov byte [ebx + eax], dl
movzx edx, byte [ebp - 0x25]
mov dword [ebp - 0x44], edx
mov edi, dword [ebp - 0x1c]
mov eax, esi
mov dword [ebp - 0x40], eax
mov ecx, edx
or cl, 1
xor edx, edx
div ecx
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x44]
mov ecx, eax
add ecx, edx
mov edx, ecx
mov byte [ebx + edi], dl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x7e8
jl 0x401c0f
inc dword [ebp - 8]
or esi, esi
je 0x401d06
mov eax, dword [ebp - 0xc]
mov edx, eax
add edx, eax
mov dword [ebp - 0x10], edx
jmp 0x401d0c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jle 0x401bcc
pop edi
pop esi
pop ebx
leave
ret