joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453fa4
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 0x45414f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454130
mov dl, 1
mov eax, dword [0x4121a4]
call fcn.00403858
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040469c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45411f
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.00446f3c
test al, al
je 0x454112
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, 0x454160
lea eax, [ebp - 0x254]
call fcn.004091b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454112
xor eax, eax
push ebp
push 0x45410b
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 0x454198
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4540f4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040490c
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 0x4540f4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040490c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454112
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454015
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415f0c
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 0x454156
lea eax, [ebp - 0x260]
call fcn.0040469c
ret

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

Disassembly:
push ecx
mov eax, dword [0x53157c]
cmp byte [eax + 0xad], 0
jne 0x454b39
cmp dword [0x531594], 0
jne 0x454afa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454a84
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x531594], eax
cmp dword [0x531590], 0
jne 0x454b15
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x531590], eax
cmp dword [0x531598], 0
jne 0x454b39
push esp
push 0
push 0
push 0x454a28
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x531598], eax
pop edx
ret
Function at 0x454d0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454d23
add esp, 0xfffffff0
call fcn.00403b94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a144
mov eax, dword [0x52d024]
cmp word [eax + 2], 0
jne 0x454d4b
mov eax, dword [0x52d024]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004567bc
mov eax, dword [0x52d0d0]
cmp word [eax + 2], 0
jne 0x454d65
mov eax, dword [0x52d0d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004569c8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d80]
call fcn.00403858
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d80]
call fcn.00403858
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411d80]
call fcn.00403858
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 [0x41e49c]
call fcn.00424388
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x454f1c
mov eax, dword [0x52cf40]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042475c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457088
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x52cf40]
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.0040c8c8
test eax, eax
je 0x454e6c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b70
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8fc
test eax, eax
je 0x454e80
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.0040490c
mov byte [ebx + 0xd4], 0
push ebx
push 0x45631c
call fcn.0041b2c0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x52ce38]
cmp byte [eax], 0
jne 0x454ed1
mov eax, ebx
call fcn.00455060
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.00457264
mov eax, ebx
call fcn.00457dc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454f11
call fcn.00403bec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4552e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x53157c]
cmp dword [eax + 0x30], 0
je 0x45538a
cmp dword [ebx + 0x94], 0
jne 0x455384
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455270
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455384
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 0x45534a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455384
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.004141b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455359
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4560a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4560d9
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.0040478c
jmp 0x4560e6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457448
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4574b6
mov eax, esi
call fcn.00441bb4
test al, al
je 0x4574b6
mov eax, dword [ebx + 0x84]
call fcn.00441814
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4574b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4574aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441814
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00439c40
jmp 0x4574b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00457284
pop esi
pop ebx
ret
Function at 0x403930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4039a8
xor eax, eax
push ebp
push 0x4039a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x49a020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ac8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a0050], 0
je 0x404b29
cmp word [0x4a032c], 0xd7b2
jne 0x404af1
cmp dword [0x4a0334], 0
jbe 0x404af1
mov eax, 0x4a0328
call dword [0x4a0344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404b54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49a02c], 0
jne 0x404b45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ca8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x49a030], 0
je 0x404cce
mov edx, esi
mov eax, ebx
call dword [0x49a030]
jmp 0x404cdd
mov eax, 8
call fcn.00402fb0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4a0051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c70
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4091e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4a2b2c
push 0xa
push 0x409274
mov eax, dword [0x4a2b1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409204
call fcn.00411cf8
push ebx
mov eax, dword [0x4a2b1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40921b
call fcn.00411cf8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40922d
call fcn.00411cf8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4a2b30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4a2b34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4a2b38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4a2b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4a2b40], ecx
add edx, dword [eax + 0x14]
mov dword [0x4a2b44], edx
pop esi
pop ebx
ret

Function at 0x40aafc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40aba5
test eax, edx
je 0x40aba8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ab25
push edx
mov edx, eax
mov eax, esp
call fcn.00405a98
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ab3b
push eax
lea eax, [esp + 8]
call fcn.00405a98
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ab4a
movzx eax, word [eax]
sub eax, ecx
jmp 0x40ab71
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 0x40ab8b
add ecx, 4
js 0x40ab62
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40ab88
push eax
mov eax, ecx
mov edx, 2
call fcn.00404d48
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40ab6f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40ab71
xor eax, eax
ret
test eax, eax
je 0x40abb8
test edx, edx
jne 0x40ab0c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004058f8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40bace
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40baef
cmp ebx, 3
je 0x40baef
cmp ebx, 0x7b
je 0x40baef
mov eax, esi
call fcn.0040ba70
test al, al
jne 0x40baf3
xor eax, eax
jmp 0x40baf5
mov al, 1
pop esi
pop ebx
ret

Function at 0x40f4a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40f4e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004059a8
jmp 0x40f4ea
mov eax, ebx
mov edx, esi
call fcn.0040586c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f4f4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40f516
movzx eax, word [esp]
jmp 0x40f518
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fc7c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040fab4
mov eax, dword [0x49fc64]
cmp byte [eax], 0
je 0x40fd0e
mov eax, dword [0x49f9e4]
call fcn.00403378
call fcn.00403118
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040be14
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40fd5c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40fd47
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49f984]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a2b1c]
call fcn.00406b84
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x410924
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4109fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004058c0
lea eax, [ebp - 4]
call fcn.00406194
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058f8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4109e4
mov eax, ebx
call fcn.00402fb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4109dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058f8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4109c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x410a0c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4109c7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4109e4
mov eax, dword [ebp - 0x10]
call fcn.00402fcc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a01
lea eax, [ebp - 4]
call fcn.0040585c
ret
Function at 0x411b27
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405074
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x411b4a
mov eax, edi
add eax, eax
call fcn.00402fb0
mov esi, eax
jmp 0x411b4c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x411b85
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x411b6f
mov eax, esp
cmp esi, eax
je 0x411b92
mov eax, esi
call fcn.00402fcc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x411bcc
cmp bl, 0
je 0x411bc8
cmp bl, 0x41
jl 0x411bc3
cmp bl, 0x5a
jg 0x411bc3
or bl, 0x20
xor al, bl
inc esi
jmp 0x411ba7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x411b0c

Function at 0x421f20
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00421bf8
dec esi
jne 0x421f42
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4230ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a4e5c
cmp dword [edi], 0
jne 0x423168
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a4e58]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49ac50
mov ecx, 2
call fcn.00403168
mov edx, 0x4230c4
lea eax, [esi + 5]
call fcn.004230e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004230e4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42313d
mov dword [0x4a4e58], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4260d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004058f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x426130
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49fdb0]
mov dl, 1
mov eax, dword [0x425b60]
call fcn.0040fe58
call fcn.0040454c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00425ce8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4273cc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4273d2
ret
Function at 0x4507d4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405854
xor eax, eax
push ebp
push 0x450969
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x450937
xor edx, edx
push ebp
push 0x450930
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004058c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x450843
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x450843
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404ef4
test eax, eax
je 0x45084c
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x450905
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4508f4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004058c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4508ae
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4508ae
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00404ef4
test eax, eax
je 0x4508b7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.004058f8
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00403168
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4508fb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x49f918]
mov dl, 1
mov eax, dword [0x409474]
call fcn.0040fe1c
call fcn.0040454c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450970
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405864
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040586c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4530d3
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00405a7c
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4584ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458625
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x425bd4]
call fcn.00425d10
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4585fb
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00425db0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405a7c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x458640
call fcn.00405c50
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00425e14
test al, al
je 0x4585e5
lea ecx, [ebp - 4]
mov edx, 0x4586b4
mov eax, dword [ebp - 0xc]
call fcn.00426060
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00412374
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4585de
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4586cc
mov eax, dword [ebp - 8]
push eax
call fcn.00407f5c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x49f170]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4585e5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458602
mov eax, dword [ebp - 0xc]
call fcn.00403b58
ret

Function at 0x458730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x458777
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45875a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45876b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x458777
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret