joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46886a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00468529
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4688b4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045dafb
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00436900
jmp 0x4688bf
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047590b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4688c5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004643cc
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x468902
call fcn.00468529
mov dword [esi + 0xc], 1
jmp 0x468907
call fcn.00468529
cmp dword [esi], 0
je 0x468950
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x468928
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045dafb
jmp 0x46893a
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402d00
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00436900
jmp 0x468974
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x468974
push dword [esi]
push dword [ebp + 8]
call fcn.0047590b
pop esi
pop ebp
ret 0xc

Function at 0x46f8f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x46f93d
call fcn.0046e2ee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46f93d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x46f980
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x46f969
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46f969
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x46f97d
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4b5dd8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.005357ed
call fcn.0046dd1f
cmp dword [eax + 0x14], 0
jne 0x4b5df5
mov ecx, esi
pop esi
jmp fcn.004b58dd
pop esi
ret

Function at 0x4b94b1
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00496838
call fcn.0046dd1f
cmp dword [eax + 0x14], 0
jne 0x4b94ce
mov ecx, esi
pop esi
jmp fcn.004b8e84
pop esi
ret

Function at 0x4c8e9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4c8eb5
call fcn.0046e2ee
mov esi, dword [eax + 0xc]
push dword [0x5ed014]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4c8ed3
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c8ecb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4c8f00
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4c8ecd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004c8dc9
mov esi, eax
jmp 0x4c8ef2

Function at 0x541259
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x541271
mov edi, dword [esi + 0xc]
jmp 0x5412b1
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x54128a
call fcn.00466b6f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x54129f
call fcn.00466b6f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5412b1
call fcn.00466b6f
call fcn.0046e2ee
cmp dword [eax + 0x3c], 0
je 0x5412c6
push edi
mov ecx, ebx
call fcn.00540117
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00541173
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5412e4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5412f0
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x55a74e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e6990]
jne 0x55a758
repz ret
jmp fcn.00562754
Function at 0x55c981
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x55c9a8
call fcn.0055e131
mov dword [eax], esi
call fcn.0055e11e
push 0x16
pop esi
mov dword [eax], esi
call fcn.005629e4
mov eax, esi
jmp 0x55c9fd
test dword [ebp + 0xc], 0xfffffff9
jne 0x55c98e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55c9d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0055e144
pop ecx
call fcn.0055e11e
mov eax, dword [eax]
jmp 0x55c9fd
test al, 0x10
jne 0x55c9fb
test al, 1
je 0x55c9fb
test byte [ebp + 0xc], 2
je 0x55c9fb
call fcn.0055e131
mov dword [eax], 5
call fcn.0055e11e
mov dword [eax], 0xd
jmp 0x55c9cc
xor eax, eax
pop esi
pop ebp
ret

Function at 0x571590
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e6990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00563411
and dword [ebp - 0x14], 0
cmp dword [0x5ef954], 0
mov dword [ebp - 0x18], eax
jne 0x571643
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5716eb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5716eb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b5fa8
push ebx
mov dword [0x5ef954], eax
call edi
push eax
call esi
push 0x5b5f94
push ebx
mov dword [0x5ef958], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ef95c], eax
call edi
push eax
call esi
mov dword [0x5ef964], eax
test eax, eax
je 0x571643
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ef960], eax
mov eax, dword [0x5ef960]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x57169c
cmp dword [0x5ef964], ecx
je 0x57169c
push eax
call esi
push dword [0x5ef964]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x57169c
test ebx, ebx
je 0x57169c
call edi
test eax, eax
je 0x571693
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x571693
test byte [ebp - 8], 1
jne 0x57169c
or dword [ebp + 0x10], 0x200000
jmp 0x5716cf
mov eax, dword [0x5ef958]
cmp eax, dword [ebp - 0x18]
je 0x5716cf
push eax
call esi
test eax, eax
je 0x5716cf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5716cf
mov eax, dword [0x5ef95c]
cmp eax, dword [ebp - 0x18]
je 0x5716cf
push eax
call esi
test eax, eax
je 0x5716cf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ef954]
call esi
test eax, eax
je 0x5716eb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5716ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a74e
leave
ret
Function at 0x403894
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40392c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40390c
xor eax, eax
push ebp
push 0x403905
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 0x403964
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 0x40390c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x47b020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d050], 0
je 0x404a75
cmp word [0x47d32c], 0xd7b2
jne 0x404a3d
cmp dword [0x47d334], 0
jbe 0x404a3d
mov eax, 0x47d328
call dword [0x47d344]
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 0x404aa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47b02c], 0
jne 0x404a91
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404bf4
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 [0x47b030], 0
je 0x404c1a
mov edx, esi
mov eax, ebx
call dword [0x47b030]
jmp 0x404c29
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47d051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bbc
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 0x408aec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x47fb2c
push 0xa
push 0x408b80
mov eax, dword [0x47fb1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408b10
call fcn.00410650
push ebx
mov eax, dword [0x47fb1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408b27
call fcn.00410650
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408b39
call fcn.00410650
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x47fb30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x47fb34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x47fb38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x47fb3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x47fb40], ecx
add edx, dword [eax + 0x14]
mov dword [0x47fb44], edx
pop esi
pop ebx
ret

Function at 0x40a1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a249
test eax, edx
je 0x40a24c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a1c9
push edx
mov edx, eax
mov eax, esp
call fcn.004055d4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a1df
push eax
lea eax, [esp + 8]
call fcn.004055d4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a1ee
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a215
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 0x40a22f
add ecx, 4
js 0x40a206
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a22c
push eax
mov eax, ecx
mov edx, 2
call fcn.00404c94
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a213
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a215
xor eax, eax
ret
test eax, eax
je 0x40a25c
test edx, edx
jne 0x40a1b0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e164
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 pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e19d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040553c
jmp 0x40e1a6
mov eax, ebx
mov edx, esi
call fcn.00405400
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e1b0
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 0x40e1d2
movzx eax, word [esp]
jmp 0x40e1d4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e938
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040e770
mov eax, dword [0x47cdbc]
cmp byte [eax], 0
je 0x40e9ca
mov eax, dword [0x47cb90]
call fcn.00403300
call fcn.00403104
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.0040b04c
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 0x40ea18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ea03
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47cb34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47fb1c]
call fcn.00406508
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 0x40f5e0
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 0x40f6b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405454
lea eax, [ebp - 4]
call fcn.00405cd0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040548c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40f6a0
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f699
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.0040548c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40f683
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f6c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40f683
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 0x40f6a0
mov eax, dword [ebp - 0x10]
call fcn.00402fb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f6bd
lea eax, [ebp - 4]
call fcn.004053f0
ret
Function at 0x41047f
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.00404f30
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 0x4104a2
mov eax, edi
add eax, eax
call fcn.00402f9c
mov esi, eax
jmp 0x4104a4
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 0x4104dd
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 0x4104c7
mov eax, esp
cmp esi, eax
je 0x4104ea
mov eax, esi
call fcn.00402fb8
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 0x410524
cmp bl, 0
je 0x410520
cmp bl, 0x41
jl 0x41051b
cmp bl, 0x5a
jg 0x41051b
or bl, 0x20
xor al, bl
inc esi
jmp 0x4104ff
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x410464

Function at 0x41fca0
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.0041f9a4
dec esi
jne 0x41fcc2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x420e6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x481e60
cmp dword [edi], 0
jne 0x420ee8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x481e5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47bc34
mov ecx, 2
call fcn.00403154
mov edx, 0x420e44
lea eax, [esi + 5]
call fcn.00420e64
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420e64
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 0x420ebd
mov dword [0x481e5c], 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 0x423c7c
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.0040548c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x423cd4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47cee4]
mov dl, 1
mov eax, dword [0x423704]
call fcn.0040eb14
call fcn.00404498
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042388c
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 0x424c14
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 0x424c1a
ret
Function at 0x436bdc
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.00405400
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x436c23
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004055b8
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x43c03c
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 0x43c175
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 [0x423778]
call fcn.004238b4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43c14b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00423954
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004055b8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x43c190
call fcn.0040578c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004239b8
test al, al
je 0x43c135
lea ecx, [ebp - 4]
mov edx, 0x43c204
mov eax, dword [ebp - 0xc]
call fcn.00423c04
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00410ccc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43c12e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43c21c
mov eax, dword [ebp - 8]
push eax
call fcn.00407900
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x47c734]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c135
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 0x43c152
mov eax, dword [ebp - 0xc]
call fcn.00403abc
ret

Function at 0x43c280
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 0x43c2c7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43c2aa
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43c2bb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43c2c7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret