joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
or ebp, 0xffffffff
jmp 0x4cf5b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cf5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf5a8
mov eax, 1
add ebx, ebx
jne 0x4cf5cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cf5dc
jne 0x4cf5fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf5fb
dec eax
add ebx, ebx
jne 0x4cf5e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cf5c0
add ebx, ebx
jne 0x4cf5f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cf64d
xor ecx, ecx
sub eax, 3
jb 0x4cf613
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cf682
sar eax, 1
mov ebp, eax
jmp 0x4cf61e
add ebx, ebx
jne 0x4cf61e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf5ec
inc ecx
add ebx, ebx
jne 0x4cf62c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cf5ec
add ebx, ebx
jne 0x4cf639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cf62e
jne 0x4cf64a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cf62e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cf66c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cf65e
jmp 0x4cf5ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cf66c
add edi, ecx
jmp 0x4cf5ae
pop esi
mov edi, esi
mov ecx, 0x2f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cf68a
cmp byte [edi], 0x79
jne 0x4cf68a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4cf68f
lea edi, [esi + 0xcd000]
mov eax, dword [edi]
or eax, eax
je 0x4cf707
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcf824]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcf860]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cf6bc
mov ecx, edi
jns 0x4cf6eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcf864]
or eax, eax
je 0x4cf701
mov dword [ebx], eax
add ebx, 4
jmp 0x4cf6d9
call dword [esi + 0xcf86c]
mov ebp, dword [esi + 0xcf868]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4cf73b
sub esp, 0xffffff80
jmp 0x4012b8
Function at 0x401de5
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xd8
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x64], eax
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x401ecf
call fcn.0042fda0
mov esi, esp
test esi, esi
je 0x401ecf
push edi
push 0
push esi
call fcn.00419dc0
add esp, 0xc
push esi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401ecf
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
push 0x4468c8
push esi
call edi
test eax, eax
je 0x401ecf
mov ecx, dword [ebp + 0x70]
push str.VersionVI
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x64]
push 0x44688c
push eax
call fcn.004029e8
add esp, 0x14
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
jne 0x401eb8
push str.VersionVI
lea eax, [ebp - 0x64]
push 0x446850
push eax
call fcn.004029e8
add esp, 0xc
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
je 0x401ecf
push 0x14
push dword [ebp + 0x70]
push ebx
call fcn.0041fac4
xor eax, eax
add esp, 0xc
mov word [ebx + 0x26], ax
inc eax
jmp 0x401ed1
xor eax, eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x401edc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push str.FRAMEWORK
push 0x84
push dword [0x4482d0]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x4482d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x4482bc
call fcn.0040f03e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4482bc]
xor ecx, ecx
test eax, eax
je 0x401f3b
cmp word [eax], cx
jne 0x401f4a
mov edx, 0x43a788
mov ecx, 0x4482bc
call fcn.0040f03e
mov ecx, 0x4482c8
call fcn.0040effc
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041fa56
lea ecx, [ebp - 0x210]
call fcn.0040be9b
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0041fa78
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040bcdc
push str.FRAMEWORK
test eax, eax
je 0x401f99
push 0x85
jmp 0x401f9e
push 0x86
push dword [0x4482d0]
call edi
push eax
push dword [0x4482d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x4482c0
mov edx, eax
mov ecx, edi
call fcn.0040f03e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4482c0]
test eax, eax
je 0x401fe1
xor ecx, ecx
cmp word [eax], cx
jne 0x402001
lea ecx, [ebp - 0x210]
call fcn.0040bcdc
mov ecx, edi
mov edx, 0x43a918
test eax, eax
jne 0x401ffc
mov edx, str.Cette_application_a_besoin_du_framework_WINDEV_pour_fonctionner._r_nIl_nest_pas_install
call fcn.0040f03e
pop edi
pop esi
leave
ret
Function at 0x110530f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x110db60]
jne 0x1105319
repz ret
jmp fcn.011082eb

Function at 0x1105ba3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.011030e7
and dword [ebp - 4], 0
cmp dword [0x110e56c], 0
mov ebx, eax
jne 0x1105c54
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1105d05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1105d05
push eax
call fcn.01103075
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x110e56c], eax
call esi
push eax
call fcn.01103075
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x110e570], eax
call esi
push eax
call fcn.01103075
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x110e574], eax
call esi
push eax
call fcn.01103075
pop ecx
mov dword [0x110e57c], eax
test eax, eax
je 0x1105c54
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.01103075
pop ecx
mov dword [0x110e578], eax
mov eax, dword [0x110e578]
cmp eax, ebx
je 0x1105cac
cmp dword [0x110e57c], ebx
je 0x1105cac
push eax
call fcn.011030f0
push dword [0x110e57c]
mov esi, eax
call fcn.011030f0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1105cac
test edi, edi
je 0x1105cac
call esi
test eax, eax
je 0x1105ca3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1105ca3
test byte [ebp - 0xc], 1
jne 0x1105cac
or dword [ebp + 0x10], 0x200000
jmp 0x1105ce5
mov eax, dword [0x110e570]
cmp eax, ebx
je 0x1105ce5
push eax
call fcn.011030f0
pop ecx
test eax, eax
je 0x1105ce5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1105ce5
mov eax, dword [0x110e574]
cmp eax, ebx
je 0x1105ce5
push eax
call fcn.011030f0
pop ecx
test eax, eax
je 0x1105ce5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x110e56c]
call fcn.011030f0
pop ecx
test eax, eax
je 0x1105d05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1105d07
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1109970
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push 0x400
mov eax, dword [ebp + 0x10]
push eax
call fcn.011098d0
cmp eax, 0x207
jle 0x11099b3
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + 0xf]
cmp edx, 0x7b
jne 0x11099b3
call fcn.01109810
push str.osufhaoisgydf_asiodygfa_sdoiufghasdoiufghoaisdu
lea eax, [ebp - 0x420]
push eax
call section..text
add esp, 8
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x11], 1
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x11], 1
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x1109a6d
mov dword [ebp - 0x424], 0xffffffff
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [ebp - 0xc], 0x27842b
jle 0x1109a46
cmp dword [ebp - 0x424], 0xffffffff
jne 0x1109a46
cmp dword [ebp - 0x10], 0x3005b864
je 0x1109a46
cmp dword [ebp - 0x438], 0xb1c711c
je 0x1109a46
mov byte [ebp - 0x11], 0
push 0x4330
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
push str.VirtualProtect
mov eax, dword [0x110e988]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x110e97c], eax
cmp dword [0x110e988], 0
jne 0x1109a5f
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x110e988], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x11099d2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 0x4330
mov edx, dword [str.__F]
mov eax, dword [edx]
push eax
call fcn.011098c0
mov dword [ebp - 4], 0x11154e1
mov dword [ebp - 0x448], 0
jmp 0x1109aab
mov ecx, dword [ebp - 0x448]
add ecx, 1
mov dword [ebp - 0x448], ecx
mov edx, dword [ebp - 0x448]
cmp edx, dword [ebp - 0x1c]
jae 0x1109aec
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x448]
mov dl, byte [ecx]
mov byte [eax], dl
cmp dword [ebp - 0x448], 0x64
jne 0x1109aea
push 0x110e984
push 0x40
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x110e97c]
jmp 0x1109a9c
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.01109920
call dword [ebp - 8]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x402fb4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x465008], 0x8088405
inc edx
mov dword [ebx + 0x465008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x465024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403708
xor eax, eax
push ebp
push 0x403701
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 0x403744
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 0x403708
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x465024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x465024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40451c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b7048], 0
je 0x40457d
cmp word [0x4b721c], 0xd7b2
jne 0x404545
cmp dword [0x4b7224], 0
jbe 0x404545
mov eax, 0x4b7218
call dword [0x4b7234]
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 0x4045a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x465030], 0
jne 0x404599
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40810c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40819c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40819c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40814f
test edx, 3
jne 0x40813e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408149
jmp 0x40814f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40814f
cmp dword [ecx - 8], 1
je 0x408159
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40816b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x4081a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408238
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408238
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081eb
test edx, 3
jne 0x4081da
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081e5
jmp 0x4081eb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081eb
cmp dword [ecx - 8], 1
je 0x4081f5
mov edx, ebx
or edx, 3
call fcn.00404de8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408207
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408a5d
test al, 0x10
je 0x408a61
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b5ac
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 0x40b5e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040478c
jmp 0x40b5ee
mov eax, ebx
mov edx, esi
call fcn.004046f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5f8
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 0x40b61a
movzx eax, byte [esp]
jmp 0x40b61c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bcac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb24
mov eax, dword [0x4b6d9c]
cmp byte [eax], 0
je 0x40bd28
mov eax, dword [0x4b6b94]
call fcn.00403058
call fcn.00402df8
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.00408c20
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 0x40bd70
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b6b30]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b97f4]
call fcn.00405898
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 0x40c5bc
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 0x40c692
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404734
lea eax, [ebp - 4]
call fcn.00404bb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c67c
mov eax, ebx
call fcn.00402c9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c675
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.00404b60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c65f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c65f
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 0x40c67c
mov eax, dword [ebp - 0x10]
call fcn.00402cb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c699
lea eax, [ebp - 4]
call fcn.0040469c
ret
Function at 0x41bd1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ba300
cmp dword [edi], 0
jne 0x41bd98
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ba2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x465b58
mov ecx, 2
call fcn.00402e8c
mov edx, 0x41bcf4
lea eax, [esi + 5]
call fcn.0041bd14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bd14
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 0x41bd6d
mov dword [0x4ba2fc], 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 0x41f484
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.00404b60
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41f4dc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b6ec4]
mov dl, 1
mov eax, dword [0x41efa8]
call fcn.0040be6c
call fcn.004040e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041f0b0
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 0x420338
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 0x42033e
ret
Function at 0x43075c
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.0040469c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4307aa
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.0040490c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43482c
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 0x43495f
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 [0x41f008]
call fcn.0041f0d8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x434935
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041f178
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0040490c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x434974
call fcn.004049ac
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041f1dc
lea ecx, [ebp - 4]
mov edx, 0x4349b0
mov eax, dword [ebp - 0xc]
call fcn.0041f40c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d918
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x434918
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4349bc
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 [0x46656c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43491f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

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