joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a698
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x4bec90]
cmp esi, dword [eax + 0x30]
jne 0x44a6bf
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x44a6ee
mov eax, dword [0x4bec90]
cmp esi, dword [eax + 0x30]
jne 0x44a6ea
mov eax, dword [0x4bec90]
cmp byte [eax + 0x5b], 0
jne 0x44a6ee
xor eax, eax
jmp 0x44a6f0
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x44a705
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x44a71c
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x44a72b
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x44a73a
test bl, bl
je 0x44a750
test bl, bl
je 0x44a748
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x44a750
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x44a9f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x44aa1a
mov eax, esp
push eax
push 0x44a9bc
call sub.user32.dll_EnumWindows
jmp 0x44aa2d
mov eax, esp
push eax
push 0x44a99c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x44aab8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44ab0c]
test si, 4
je 0x44aacd
or bl, 1
test si, 8
je 0x44aad7
or bl, 4
test si, 1
je 0x44aae1
or bl, 8
test si, 2
je 0x44aaeb
or bl, 0x10
test si, 0x10
je 0x44aaf5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ab04
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ab10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44ab4c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ab2a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ab39
or bl, 4
test esi, 0x20000000
je 0x44ab44
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x452a18
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452a2a
add esp, 0xfffffff0
call fcn.00403d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a00c
mov eax, dword [0x4b97d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x452dbc
mov eax, dword [0x4b97e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x452dc8
mov eax, ebx
call fcn.00452dd4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
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, 0x44e484
push eax
push 0
push 0
mov eax, dword [0x4b992c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dbb4]
call fcn.0041f0d4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dbb4]
call fcn.0041f0d4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dbb4]
call fcn.0041f0d4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453204
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4530d4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4530d4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4530d4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452b67
call fcn.00403d88
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452eb8
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 0x453063
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453044
mov dl, 1
mov eax, dword [0x4121e0]
call fcn.004039f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404838
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453033
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.00445398
test al, al
je 0x453026
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, 0x453074
lea eax, [ebp - 0x254]
call fcn.004092b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453026
xor eax, eax
push ebp
push 0x45301f
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 0x4530ac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453008
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
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 0x453008
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453026
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452f29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415eb8
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 0x45306a
lea eax, [ebp - 0x260]
call fcn.00404838
ret

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

Disassembly:
push ecx
mov eax, dword [0x4bec90]
cmp byte [eax + 0xad], 0
jne 0x453a4d
cmp dword [0x4becac], 0
jne 0x453a0e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453998
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4becac], eax
cmp dword [0x4beca8], 0
jne 0x453a29
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4beca8], eax
cmp dword [0x4becb0], 0
jne 0x453a4d
push esp
push 0
push 0
push 0x45393c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4becb0], eax
pop edx
ret
Function at 0x453c20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453c37
add esp, 0xfffffff0
call fcn.00403d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a00c
mov eax, dword [0x4b9918]
cmp word [eax + 2], 0
jne 0x453c5f
mov eax, dword [0x4b9918]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455820
mov eax, dword [0x4b99bc]
cmp word [eax + 2], 0
jne 0x453c79
mov eax, dword [0x4b99bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455a2c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411dbc]
call fcn.004039f4
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 [0x41e390]
call fcn.004241d8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x453e30
mov eax, dword [0x4b9844]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004245ac
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4560f0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b9844]
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.0040c9d8
test eax, eax
je 0x453d80
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c68
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca0c
test eax, eax
je 0x453d94
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.00404aa8
mov byte [ebx + 0xd4], 0
push ebx
push 0x455348
call fcn.0041b188
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4b9748]
cmp byte [eax], 0
jne 0x453de5
mov eax, ebx
call fcn.00453f74
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.004562c8
mov eax, ebx
call fcn.00456e2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453e25
call fcn.00403d88
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4541f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x454293
cmp dword [ebx + 0x94], 0
jne 0x45428d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45417c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45428d
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 0x454253
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45428d
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.00414160
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454262
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4544ac
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4bec90]
cmp dword [eax + 0x30], 0
je 0x454609
test bl, bl
jne 0x45455a
cmp dword [esi + 0x9c], 0
jne 0x45454f
mov eax, esi
call fcn.00456ca8
push eax
push 0x4543d8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x454520
mov eax, dword [0x4bec90]
call fcn.00457388
test al, al
je 0x454520
mov eax, dword [0x4becb4]
call fcn.004056f4
mov edi, eax
cmp edi, 0
jl 0x454520
push 0
mov eax, dword [0x4becb4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45450a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45454f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414160
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45452f
inc dword [esi + 0x9c]
jmp 0x454609
cmp dword [esi + 0x9c], 0
jle 0x454609
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x454609
cmp dword [esi + 0x44], 0
je 0x4545b5
mov eax, dword [0x4bec90]
call fcn.00457388
test al, al
je 0x4545b5
mov eax, dword [0x4becb4]
call fcn.004056f4
mov edi, eax
cmp edi, 0
jl 0x4545b5
push 5
mov eax, dword [0x4becb4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45459f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4545e4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414160
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4545c4
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4becb4
mov ecx, 1
mov edx, dword [0x4543b8]
call fcn.004058a8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45509c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x455106
mov eax, ebx
call fcn.00457388
test al, al
jne 0x455106
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.00404928
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4550f3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x455113
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040488c
jmp 0x455113
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040488c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4564ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45651a
mov eax, esi
call fcn.004401a4
test al, al
je 0x45651a
mov eax, dword [ebx + 0x84]
call fcn.0043fdf4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45651a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45650e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fdf4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00437d9c
jmp 0x45651a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004562e8
pop esi
pop ebx
ret
Function at 0x402bea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov byte [ebp - 0x18], al
mov byte [ebp - 5], 0
jmp 0x402c64
mov byte [ebp - 6], 0
jmp 0x402c5a
movzx eax, byte [ebp - 5]
movzx edx, byte [ebp - 6]
mov ecx, dword [ebp + 0xc]
shl eax, 2
add eax, ecx
add eax, edx
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x18]
lea edx, [eax*4]
movzx eax, byte [ebp - 5]
add eax, edx
lea edx, [eax*4]
movzx eax, byte [ebp - 6]
add eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 5]
movzx ecx, byte [ebp - 6]
xor edx, ebx
mov ebx, dword [ebp + 0xc]
shl eax, 2
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 6], 1
cmp byte [ebp - 6], 3
jbe 0x402c03
add byte [ebp - 5], 1
cmp byte [ebp - 5], 3
jbe 0x402bfd
nop
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x402c71
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x402cca
mov byte [ebp - 0xa], 0
jmp 0x402cc0
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + str.cw]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x402c85
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x402c7f
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x40378a
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov byte [ebp - 9], 0
jmp 0x4037e3
mov byte [ebp - 0xa], 0
jmp 0x4037d9
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 9]
mov ecx, dword [ebp + 8]
shl eax, 2
add eax, ecx
add eax, edx
movzx eax, byte [eax]
movzx eax, al
movzx esi, byte [ebp - 0xa]
movzx ecx, byte [ebp - 9]
movzx edx, byte [eax + 0x4952c0]
mov ebx, dword [ebp + 8]
lea eax, [esi*4]
add eax, ebx
add eax, ecx
mov byte [eax], dl
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 3
jbe 0x40379e
add byte [ebp - 9], 1
cmp byte [ebp - 9], 3
jbe 0x403798
nop
nop
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x4039e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov byte [ebp - 5], 0
jmp 0x403a21
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
movzx ebx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 5]
mov eax, dword [ebp + 8]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add byte [ebp - 5], 1
cmp byte [ebp - 5], 0xf
jbe 0x4039f6
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403e90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00404db0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00404db0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x403ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x497c90]
test esi, esi
jle 0x404010
mov eax, dword [0x497c94]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x403f24
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x403fa7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403f10
mov dword [esp], ebx
call fcn.004048f0
mov edi, eax
test eax, eax
je 0x404037
mov eax, dword [0x497c94]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00404a30
mov edx, dword [0x497c94]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x404017
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x403fa0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x403fb0
add dword [0x497c90], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x497c94]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x403fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00403e90
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x403f2e
mov eax, dword [0x497c94]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00403e90
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00403e90
lea esi, [esi]
nop
Function at 0x404560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x497cac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x497ca4]
sub esp, 4
test ebx, ebx
je 0x4045b5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x4045ae
test eax, eax
jne 0x4045ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404590
mov dword [esp], 0x497cac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4048f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x404915
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x404920
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x404915
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x404968
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40495e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40496a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x404950
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401852
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov edi, 0xfb
lea eax, [ebp - 0x1a8]
push edi
push eax
push dword [0x416dd8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
lea eax, [ebp - 0xac]
push ebx
push eax
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4018b6
push dword [0x416da0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x416ddc]
mov esi, 0x416e00
push edi
push esi
add eax, 2
jmp 0x401a13
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019ef
cmp esi, ebx
je 0x4019ef
mov eax, 0x3030303
push esi
push 0x40
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x1020304
mov dword [ebp - 0x1c], 0x5060708
mov dword [ebp - 0x18], 0x13cbd124
mov dword [ebp - 0x14], 0x397b9063
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x416dd0], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x401941
push dword [0x416dd0]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [0x416da0]
call dword [sym.imp.USER32.dll_SetCursor]
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x30
push ebx
push str.Memory_allocation_error__
jmp 0x401a2c
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll__lread]
lea eax, [esi - 0x18]
mov dword [ebp - 4], ebx
cmp eax, ebx
jbe 0x401999
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x24]
push 0x18
push eax
mov eax, dword [ebp - 0xc]
add ecx, eax
push ecx
call fcn.00409bd0
add esp, 0xc
test eax, eax
je 0x40198c
inc dword [ebp - 4]
lea eax, [esi - 0x18]
cmp dword [ebp - 4], eax
jb 0x401964
jmp 0x401999
mov eax, dword [ebp - 4]
add eax, 0x18
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4019d5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [0x416dd0]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x416dd0]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [0x416da0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x416ddc]
mov esi, 0x416e00
push edi
push esi
inc eax
jmp 0x401a13
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub esi, eax
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
add eax, ecx
jmp 0x401a3a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [0x416da0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x416ddc]
mov esi, 0x416e00
push edi
push esi
add eax, 3
push eax
push dword [0x416dd8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x10
push ebx
push esi
push dword [0x416dd4]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret