joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468858
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x468890]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468871
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468880
or bl, 4
test esi, 0x20000000
je 0x46888b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46ef38
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46ef4a
add esp, 0xfffffff0
call fcn.00403634
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425740
mov eax, dword [0x4db67c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46f2dc
mov eax, dword [0x4db68c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46f2e8
mov eax, ebx
call fcn.0046f2f4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a978]
call fcn.004032a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a978]
call fcn.004032a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a978]
call fcn.004032a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a978]
call fcn.004032a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a978]
call fcn.004032a0
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, 0x46b710
push eax
push 0
push 0
mov eax, dword [0x4db938]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42c22c]
call fcn.0042d9a0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42c22c]
call fcn.0042d9a0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42c22c]
call fcn.0042d9a0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046f7a4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46f638
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46f638
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46f638
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46f087
call fcn.0040368c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46f41c
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 0x46f5c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46f5a8
mov dl, 1
mov eax, dword [0x41afdc]
call fcn.004032a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46f597
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.0045d12c
test al, al
je 0x46f58a
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, 0x46f5d8
lea eax, [ebp - 0x254]
call fcn.004096dc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46f58a
xor eax, eax
push ebp
push 0x46f583
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 0x46f610
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46f56c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404358
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 0x46f56c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f58a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46f48d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041f7dc
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 0x46f5ce
lea eax, [ebp - 0x260]
call fcn.004040e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4dcbe8]
cmp byte [eax + 0xa5], 0
jne 0x46ffb5
cmp dword [0x4dcc00], 0
jne 0x46ff76
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46ff00
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4dcc00], eax
cmp dword [0x4dcbfc], 0
jne 0x46ff91
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4dcbfc], eax
cmp dword [0x4dcc04], 0
jne 0x46ffb5
push esp
push 0
push 0
push 0x46fea4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4dcc04], eax
pop edx
ret
Function at 0x4700ac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4700c3
add esp, 0xfffffff0
call fcn.00403634
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425740
mov eax, dword [0x4db918]
cmp word [eax + 2], 0
jne 0x4700eb
mov eax, dword [0x4db918]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004716a8
mov eax, dword [0x4dba74]
cmp word [eax + 2], 0
jne 0x470105
mov eax, dword [0x4dba74]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004718a0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a978]
call fcn.004032a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a978]
call fcn.004032a0
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 [0x42cd0c]
call fcn.004343c4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47028c
mov eax, dword [0x4db734]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00434794
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x471e40
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4db734]
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.0040d5ec
test eax, eax
je 0x4701fa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004090a0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d614
test eax, eax
je 0x47020e
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.00404358
mov eax, dword [0x4db4f0]
cmp byte [eax], 0
jne 0x470242
mov eax, ebx
call fcn.004703b4
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.0047201c
mov eax, ebx
call fcn.004729e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x470282
call fcn.0040368c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470634
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dcbe8]
cmp dword [eax + 0x30], 0
je 0x4706de
cmp dword [ebx + 0x94], 0
jne 0x4706d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4705c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4706d8
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 0x47069e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4706d8
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.0041d230
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4706ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x471240
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 0x471275
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.004041d8
jmp 0x471282
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040413c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4721f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x472239
mov eax, esi
call fcn.004586b0
test al, al
je 0x472239
mov eax, dword [ebx + 0x84]
call fcn.004583ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x472239
push 0
mov eax, dword [ebx + 0x84]
call fcn.004583ac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x473198
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404598
xor eax, eax
push ebp
push 0x4732c6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x473299
xor eax, eax
push ebp
push 0x473292
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004043a8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x473267
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x473256
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004043a8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004045a8
mov edx, ebx
pop ecx
call fcn.00402974
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47325d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4db58c]
mov dl, 1
mov eax, dword [0x407918]
call fcn.0040c7d0
call fcn.00403a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4732cd
lea eax, [ebp - 4]
call fcn.004040e8
ret
Function at 0x4732d4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x473485
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404798
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x47349c
call fcn.004043f4
mov eax, ebx
call fcn.00425d64
mov edi, eax
dec edi
test edi, edi
jl 0x47338c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00425d38
mov edx, dword [0x442e04]
call fcn.0040345c
test al, al
je 0x473388
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00425d38
lea edx, [ebp - 0x14]
call fcn.00451bc4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404798
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404468
inc esi
dec edi
jne 0x47333a
mov al, byte [0x4734a0]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4734ac
mov eax, dword [ebp - 0xc]
call fcn.0040dc2c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404180
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00451bc4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x47349c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00451bc4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x47349c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x47349c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4734b8
call fcn.0040975c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47348c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0040410c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040410c
lea eax, [ebp - 0x14]
call fcn.004040e8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040410c
ret
Function at 0x490774
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4909d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4907d7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049023c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d118
cmp al, 1
jne 0x4907d7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00490554
test al, al
je 0x490963
cmp dword [ebp - 8], 0
jge 0x4907f5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0049023c
mov eax, dword [ebp - 0x210]
call fcn.004043a8
cmp ebx, eax
jge 0x49083f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049023c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4dbce4]
and eax, 0xff
bt dword [edx], eax
jae 0x49083f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x490853
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00490750
cmp ebx, dword [ebp - 8]
je 0x490955
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x49087f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034cc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4db130]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x490942
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034cc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4db130]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004583ac
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034cc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4db130]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004583ac
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490949
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4909b6
cmp dword [ebp - 8], 0
jge 0x49096e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049023c
mov eax, dword [ebp - 0x218]
call fcn.004043a8
cmp eax, dword [ebp - 8]
jg 0x4909a8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049023c
mov eax, dword [ebp - 0x21c]
call fcn.004043a8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00490750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4909db
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040410c
ret
Function at 0x4992b8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0x14]
shr eax, 1
add eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4ae178
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef0
mov ebx, eax
push esp
push 0x20019
push 0
push 0x4ae244
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4ae23a
mov dword [esp + 4], 0x105
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4ae268
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4ae231
mov eax, ebx
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00404358
mov edx, dword [ebx]
mov eax, 0x4ae278
call fcn.004046ec
test eax, eax
jle 0x4ae205
push ebx
mov edx, dword [ebx]
mov eax, 0x4ae278
call fcn.004046ec
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404608
mov eax, dword [ebx]
call fcn.004043a8
cmp eax, 2
jle 0x4ae231
mov eax, dword [ebx]
call fcn.004043a8
mov edx, eax
mov eax, dword [ebx]
call fcn.0040d3c8
test al, al
jne 0x4ae231
mov eax, ebx
mov edx, 0x4ae284
call fcn.004043b0
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
add esp, 0x110
pop ebx
ret
Function at 0x409960
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407090
mov eax, dword [ebp - 0x21c]
call fcn.00407090
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409aff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004070a8
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407134
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409a00
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409a12
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4099fd
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409acb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409a3b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004094b0
cmp dword [ebp - 0x220], 0
je 0x409a73
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409854
pop ecx
mov ebx, eax
jmp 0x409acb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040908c
mov eax, dword [ebp - 0x224]
call fcn.00409854
pop ecx
mov ebx, eax
test bl, bl
jne 0x409abe
cmp byte [0x4b1b58], 0
jne 0x409abe
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040908c
mov eax, dword [ebp - 0x228]
call fcn.00409854
pop ecx
mov ebx, eax
test bl, bl
jne 0x409acb
push ebp
call fcn.00409904
pop ecx
mov ebx, eax
test bl, bl
je 0x409ae1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b06
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004070a0
ret

Function at 0x40a278
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40d470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4b1c50
push 0xa
push 0x40d504
mov eax, dword [0x4b1c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d494
call fcn.004184b8
push ebx
mov eax, dword [0x4b1c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d4ab
call fcn.004184b8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d4bd
call fcn.004184b8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b1c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b1c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b1c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b1c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b1c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b1c68], edx
pop esi
pop ebx
ret

Function at 0x410e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410f19
test eax, edx
je 0x410f1c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410e99
push edx
mov edx, eax
mov eax, esp
call fcn.004072ac
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410eaf
push eax
lea eax, [esp + 8]
call fcn.004072ac
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410ebe
movzx eax, word [eax]
sub eax, ecx
jmp 0x410ee5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x410eff
add ecx, 4
js 0x410ed6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410efc
push eax
mov eax, ecx
mov edx, 2
call fcn.004068c4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410ee3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410ee5
xor eax, eax
ret
test eax, eax
je 0x410f2c
test edx, edx
jne 0x410e80
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41207c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407134
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41209a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4120bb
cmp ebx, 3
je 0x4120bb
cmp ebx, 0x7b
je 0x4120bb
mov eax, esi
call fcn.0041203c
test al, al
jne 0x4120bf
xor eax, eax
jmp 0x4120c1
mov al, 1
pop esi
pop ebx
ret

Function at 0x4120c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407134
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4120dd
test al, 0x10
jne 0x4120e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret