joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457450
Capabilities:
Check for time delay via gettickcount
Get number of processors
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x49063c]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x457629
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0044f608
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00450830
mov eax, dword [esi]
call fcn.0046d380
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x4574c2
mov eax, dword [esi]
call fcn.0046d380
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.0046d38c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x4574e6
mov eax, dword [esi]
call fcn.0046d38c
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.0046d374
cmp eax, dword [ebp - 0x18]
jle 0x4574fc
mov eax, dword [esi]
call fcn.0046d374
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.0046d368
cmp eax, dword [ebp - 0xc]
jle 0x457512
mov eax, dword [esi]
call fcn.0046d368
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00455df8
push eax
call sub.user32.dll_SetWindowPos
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x4575d9
mov eax, ebx
call fcn.00404390
cmp eax, 0x64
jge 0x4575d9
cmp dword [0x48fcf0], 0
je 0x4575d9
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x4575d9
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x45759c
mov bl, 2
jmp 0x4575b7
lea edx, [ebp - 0x20]
mov eax, dword [0x491b24]
call fcn.0045a6e8
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x4575b5
xor ebx, ebx
jmp 0x4575b7
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x48fdf8]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.00455df8
push eax
call dword [0x48fcf0]
mov eax, dword [0x4904a4]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.004534f4
push 4
mov eax, dword [ebp - 4]
call fcn.00455df8
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457630
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret
Function at 0x45a7f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x490668]
cmp byte [eax + 0xc], 0
je 0x45a965
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a95e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x491b78], 0
jne 0x45a84c
push 0x45a96c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45a974
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b78], eax
cmp dword [0x48fe20], 0
jne 0x45a947
push 0x45a984
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48fe20], eax
cmp dword [0x48fe20], 0
je 0x45a947
push 0x45a990
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b7c], eax
push 0x45a9a0
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b80], eax
push 0x45a9b4
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b84], eax
push 0x45a9cc
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b88], eax
push 0x45a9e4
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b8c], eax
push 0x45a9f8
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b90], eax
push 0x45aa10
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b94], eax
push 0x45aa28
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b98], eax
push 0x45aa44
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b9c], eax
push 0x45aa50
mov eax, dword [0x48fe20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491ba0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a965
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45f1ac
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.004040d0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45f1fb
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.00404340
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4669fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466a4c]
test si, 4
je 0x466a10
or bl, 1
test si, 8
je 0x466a1a
or bl, 4
test si, 1
je 0x466a24
or bl, 8
test si, 2
je 0x466a2e
or bl, 0x10
test si, 0x10
je 0x466a38
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466a47
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x466a50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466a88]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466a69
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466a78
or bl, 4
test esi, 0x20000000
je 0x466a83
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46d130
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46d142
add esp, 0xfffffff0
call fcn.00403684
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422420
mov eax, dword [0x490260]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d4d4
mov eax, dword [0x49026c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d4e0
mov eax, ebx
call fcn.0046d4ec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417710]
call fcn.004032f0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417710]
call fcn.004032f0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417710]
call fcn.004032f0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417710]
call fcn.004032f0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417710]
call fcn.004032f0
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, 0x469908
push eax
push 0
push 0
mov eax, dword [0x490404]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x423eac]
call fcn.004255e8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x423eac]
call fcn.004255e8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x423eac]
call fcn.004255e8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d90c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d7e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d7e8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d7e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46d27f
call fcn.004036dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d5cc
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 0x46d777
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d758
mov dl, 1
mov eax, dword [0x417d74]
call fcn.004032f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040d0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46d747
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.0045ab58
test al, al
je 0x46d73a
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, 0x46d788
lea eax, [ebp - 0x254]
call fcn.00409af0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d73a
xor eax, eax
push ebp
push 0x46d733
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 0x46d7c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d71c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404340
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 0x46d71c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d73a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46d63d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c38c
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 0x46d77e
lea eax, [ebp - 0x260]
call fcn.004040d0
ret

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

Disassembly:
push ecx
mov eax, dword [0x491bc4]
cmp byte [eax + 0xa5], 0
jne 0x46e11d
cmp dword [0x491bdc], 0
jne 0x46e0de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46e068
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x491bdc], eax
cmp dword [0x491bd8], 0
jne 0x46e0f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x491bd8], eax
cmp dword [0x491be0], 0
jne 0x46e11d
push esp
push 0
push 0
push 0x46e00c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x491be0], eax
pop edx
ret
Function at 0x46e214
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46e22b
add esp, 0xfffffff0
call fcn.00403684
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422420
mov eax, dword [0x4903f0]
cmp word [eax + 2], 0
jne 0x46e253
mov eax, dword [0x4903f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f904
mov eax, dword [0x4904cc]
cmp word [eax + 2], 0
jne 0x46e26d
mov eax, dword [0x4904cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046fafc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417710]
call fcn.004032f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417710]
call fcn.004032f0
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 [0x424954]
call fcn.0042c3e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46e3f4
mov eax, dword [0x4902dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c7b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4700ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4902dc]
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.0040da34
test eax, eax
je 0x46e362
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004094d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040da5c
test eax, eax
je 0x46e376
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.00404340
mov eax, dword [0x49017c]
cmp byte [eax], 0
jne 0x46e3aa
mov eax, ebx
call fcn.0046e51c
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.00470288
mov eax, ebx
call fcn.00470c70
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e3ea
call fcn.004036dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e79c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x491bc4]
cmp dword [eax + 0x30], 0
je 0x46e846
cmp dword [ebx + 0x94], 0
jne 0x46e840
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e72c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e840
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 0x46e806
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e840
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.00419f60
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e815
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f3a8
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 0x46f3dd
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.004041c0
jmp 0x46f3ea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404124
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x470464
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4704a5
mov eax, esi
call fcn.004560fc
test al, al
je 0x4704a5
mov eax, dword [ebx + 0x84]
call fcn.00455df8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4704a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455df8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x471188
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416c90]
call fcn.00404d94
xor eax, eax
push ebp
push 0x4712cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x490054], 0
jne 0x4711db
mov ecx, dword [0x490194]
mov dl, 1
mov eax, dword [0x40789c]
call fcn.0040cbf0
call fcn.00403aec
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402cdc
mov eax, ebx
call fcn.004049dc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4712dc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405d18
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004049ec
test eax, eax
jle 0x471273
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47126c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404358
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404340
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408774
test eax, eax
jne 0x47126c
mov ebx, 0x15
jmp 0x471278
mov ebx, 0x10
jmp 0x471278
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x490054]
call fcn.004710e0
mov eax, dword [ebp - 8]
call fcn.004710e0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4712d3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040f4
lea eax, [ebp - 0x10]
mov edx, dword [0x416c90]
call fcn.00404e64
ret

Function at 0x4722cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00407204
cmp ax, 0xffff
jne 0x4722ed
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
mov dword [ebp - 8], ebx
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x47236e
push eax
push edi
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x47236e
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x472334
inc eax
movzx edx, word [ebx]
add edx, edx
add ebx, edx
add ebx, 2
dec eax
jne 0x472327
movzx esi, word [ebx]
add ebx, 2
cmp dword [ebp - 4], 0
je 0x47236e
cmp dword [ebp + 8], 0
jle 0x47236e
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042ce48
mov esi, eax
test esi, esi
jle 0x472365
mov ecx, esi
add ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00407218
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x472e7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x472ee0
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404340
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d40
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472ee7
lea eax, [ebp - 0xc]
call fcn.004040d0
ret

Function at 0x472f54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x472fb0
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x472f7f
call fcn.0040e07c
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402918
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x472fb0
call fcn.0040e07c
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x47dd04
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x490658]
cmp dword [eax], 2
je 0x47dd22
mov ecx, 0x2aa
mov edx, 0x47dd54
mov eax, 0x47ddb4
call fcn.004040b0
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x47dca4
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x491eac], eax
cmp dword [0x491eac], 0
jne 0x47dd49
call fcn.0040e07c
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x49020c]
cmp byte [eax], 0
jne 0x480012
mov ecx, 0xb0
mov edx, 0x480060
mov eax, 0x4800c0
call fcn.004040b0
mov eax, ebx
call fcn.004047b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x480051
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00404944
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4800d4
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x49020c]
cmp byte [eax], 0
jne 0x4800f5
mov ecx, 0xbc
mov edx, 0x48010c
mov eax, 0x48016c
call fcn.004040b0
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret
Function at 0x48a474
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48a4b2
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
jmp 0x48a503
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x48a4e6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x48a4e6
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
mov ax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48b77c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
call fcn.00408f4c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48b7be
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b7c5
mov eax, dword [ebp - 8]
call fcn.00409060
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx