joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ce20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ab2b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x47ced0
mov eax, dword [0x544200]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0049a1aa
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0049a1f9
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0049a156
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47ceb7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x47ceb7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00499dc6
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47ffd0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ab740
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x480177
mov ecx, dword [0x544200]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4800cc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0047ecf0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00499eb3
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00499dc6
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x542f40
call fcn.00499e34
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0047f0b0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00499eb3
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00499dc6
lea ecx, [esp + 0xc]
call fcn.0049a28e
mov ecx, dword [esp + 0xc]
push 0x54397c
push ecx
call fcn.00488d54
add esp, 8
test eax, eax
je 0x4800f4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x48002d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00499dc6
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00499dc6
jmp 0x48017b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0047fd70
test eax, eax
push 0
je 0x48015f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0047e410
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x480145
cmp eax, 0x64
jg 0x480133
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4800d0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4800d0
cmp eax, 0x64
jge 0x4800cc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4800d0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0047e410
mov esi, eax
jmp 0x4800d0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x480185
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x49c1aa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49c1e2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049a221
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049a1f9
jmp 0x49c1ee
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49d9a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49d9e3
call fcn.004a3da8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49d9e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49d9da
xor eax, eax
jmp 0x49d9eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049d9f1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a42d8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a4306
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4324
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a423e
jmp 0x4a4324
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4324
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a423e
test edi, edi
mov eax, edi
jne 0x4a430e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5d8ab7
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x5d87dc
dec edx
mov edi, 0x877d0a25
add edi, 0xc081564c
call fcn.005d8aee
mov edx, edi
xor dword [esi], ecx
or edi, edi
add esi, 2
add edi, edx
cmp esi, eax
jl fcn.005d8ab7
or edi, edx
mov edx, edi
add edi, edi
ret
Function at 0x405b1b
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
mov dword [esi], 0x402818
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 4], eax
imul eax, dword [ebp + 8]
shr eax, 0x10
inc eax
push 0x104
shl eax, 0x10
push 0x2000
mov edi, eax
push edi
push 0
call ebx
test eax, eax
mov dword [esi + 0xc], eax
je 0x405b91
push 4
push 0x1000
push dword [esi + 4]
push eax
call ebx
test eax, eax
mov dword [esi + 0x10], eax
je 0x405b91
mov ecx, dword [esi + 4]
sub edi, ecx
add edi, dword [esi + 0xc]
add eax, 4
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
mov dword [esi + 0x18], 4
mov dword [esi + 0x1c], ecx
cmp dword [esi + 0xc], 0
pop edi
pop ebx
je 0x405b9f
cmp dword [esi + 0x10], 0
jne 0x405baa
push 0x40281c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and dword [esi + 0x20], 0
or dword [esi + 0x24], 0xffffffff
mov eax, esi
leave
ret 4
Function at 0x4066cc
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x406fb8
call fcn.00406964
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x400000], 0x5a4d
jne 0x406714
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x406714
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x40672d
cmp ecx, 0x20b
je 0x40671a
and dword [ebp - 0x1c], 0
jmp 0x406741
cmp dword [eax + 0x84], 0xe
jbe 0x406714
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x40673b
cmp dword [eax + 0x74], 0xe
jbe 0x406714
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x408e50], edi
mov dword [0x408e54], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x408344]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x408340]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x408e4c], eax
call fcn.0040695e
cmp dword [section..data], 0
jne 0x4067a1
push fcn.0040695e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040694c
push 0x401504
push 0x401500
call sub.msvcrt.dll__initterm
mov eax, dword [0x40833c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x408338]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x4014fc
push 0x4014ec
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], 0
jne 0x406805
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x4068b6
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x406848
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x406823
cmp cx, 0x22
jne 0x406810
cmp word [eax], 0x22
jne 0x40682e
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x40683c
cmp cx, 0x20
jbe 0x406829
test byte [ebp - 0x54], 1
je 0x406855
movzx ecx, word [ebp - 0x50]
jmp 0x406858
cmp word [eax], 0x20
jbe 0x40682e
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x406848
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.00406b84
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x406878
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4068b4
mov eax, esi
call fcn.0040699f
ret
Function at 0x406a8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x401540
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ae4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40157c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406ad7
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x406ae6
xor eax, eax
pop esi
leave
ret 4

Function at 0x406c4a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408320]
jne 0x406c53
ret
jmp 0x406c58
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x408320]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x408e44]
test eax, eax
je 0x406c7c
call eax
cmp dword [0x408e48], 0
je 0x406cc3
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x408e48]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.00406c4a
add ebp, 0x2a8
leave
ret
Function at 0x403880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x486020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403918
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038f8
xor eax, eax
push ebp
push 0x4038f1
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 0x403934
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x486020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x486020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40471c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x489048], 0
je 0x40477d
cmp word [0x48921c], 0xd7b2
jne 0x404745
cmp dword [0x489224], 0
jbe 0x404745
mov eax, 0x489218
call dword [0x489234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4047a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48602c], 0
jne 0x404799
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048f4
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 [0x486030], 0
je 0x40491a
mov edx, esi
mov eax, ebx
call dword [0x486030]
jmp 0x404929
mov eax, 8
call fcn.00402e8c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x489049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048bc
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 0x4088d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40892a
test eax, edx
je 0x40892d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4088ed
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408913
add ecx, 4
js 0x408903
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408910
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408939
test edx, edx
jne 0x4088e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404e00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409352
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409373
cmp ebx, 3
je 0x409373
cmp ebx, 0x7b
je 0x409373
mov eax, esi
call fcn.004092f4
test al, al
jne 0x409377
xor eax, eax
jmp 0x409379
mov al, 1
pop esi
pop ebx
ret

Function at 0x40c5b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c5e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a60
jmp 0x40c5f2
mov eax, ebx
mov edx, esi
call fcn.004049c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c61e
movzx eax, byte [esp]
jmp 0x40c620
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ccb0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb28
mov eax, dword [0x488dd0]
cmp byte [eax], 0
je 0x40cd2c
mov eax, dword [0x488acc]
call fcn.00403234
call fcn.00402fe8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004094ec
push eax
lea eax, [esp + 0x50]
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 0x40cd74
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd62
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x488a58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48b7f4]
call fcn.00405e64
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d5ec
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 0x40d6c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.00404e58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e00
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d6ac
mov eax, ebx
call fcn.00402e8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d6a5
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.00404e00
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d68f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d68f
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 0x40d6ac
mov eax, dword [ebp - 0x10]
call fcn.00402ea8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6c9
lea eax, [ebp - 4]
call fcn.00404970
ret

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

Function at 0x41db64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48d9ec
cmp dword [edi], 0
jne 0x41dbe0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48d9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x486adc
mov ecx, 2
call fcn.0040307c
mov edx, 0x41db3c
lea eax, [esi + 5]
call fcn.0041db5c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db5c
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 0x41dbb5
mov dword [0x48d9e8], 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 0x420250
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.00404e00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4202a8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x488f78]
mov dl, 1
mov eax, dword [0x41fc38]
call fcn.0040ce70
call fcn.004042e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041fd40
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 0x421104
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 0x42110a
ret
Function at 0x42ef3c
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.00404970
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42ef8a
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.00404be0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43406c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43419f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41fc98]
call fcn.0041fd68
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x434175
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041fe08
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404be0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4341b4
call fcn.00404c88
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041ff90
lea ecx, [ebp - 4]
mov edx, 0x4341f0
mov eax, dword [ebp - 0xc]
call fcn.004201d8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e9fc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x434158
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4341fc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x487460]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43415f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

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