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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x404744
call sub.KERNEL32.DLL_GetModuleFileNameA
mov esi, eax
test esi, esi
je 0x404618
push 0x404754
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x404618
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x404618
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
jmp 0x40473a
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x404658
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x40473a
mov eax, dword [ebp - 4]
add eax, 2
call fcn.0040459c
mov esi, eax
cmp byte [esi], 0
je 0x40473a
lea eax, [esi + 1]
call fcn.0040459c
mov esi, eax
cmp byte [esi], 0
je 0x40473a
jmp 0x40465e
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
jmp 0x40471d
lea eax, [esi + 1]
call fcn.0040459c
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x40473a
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_FindClose
mov esi, eax
cmp esi, 0xffffffff
je 0x40473a
push esi
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x40473a
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetTempPathA
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x40467c
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404768
Capabilities:
Accept command line arguments
Get common file path
Get disk size
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetLocaleInfoA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404998
push 0x80000001
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4047eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404998
push 0x80000002
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4047eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4049b4
push 0x80000001
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x404874
xor eax, eax
push ebp
push 0x40486d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004045b0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetStartupInfoA
test eax, eax
je 0x404852
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4049d4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetStartupInfoA
test eax, eax
je 0x404852
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404874
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40498e
cmp byte [ebp - 0xd], 0
jne 0x4048bb
cmp byte [ebp - 0x12], 0
je 0x40498e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetTempPathA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4048d4
dec ebx
cmp byte [ebx], 0x2e
je 0x4048e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4048d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40498e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404920
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
mov esi, eax
test esi, esi
jne 0x40498e
cmp byte [ebp - 0xd], 0
je 0x40498e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
mov esi, eax
test esi, esi
jne 0x40498e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b24
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404b8a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e74
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404b74
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b91
lea eax, [ebp - 0x10]
call fcn.00403e9c
ret

Function at 0x40500c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404268
xor eax, eax
push ebp
push 0x405117
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.00404fa8
mov esi, eax
test esi, esi
jle 0x4050f9
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404284
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404278
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4050f9
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040411c
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404284
cmp dword [ebp - 0xc], 0
jne 0x4050cb
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
jmp 0x4050f0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404278
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40511e
lea eax, [ebp - 0xc]
call fcn.00403e9c
lea eax, [ebp - 4]
call fcn.00403e9c
ret
Function at 0x1001f5bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1001f5ce
pop dword [ebp - 0x30]
mov eax, 0xa4f7afd
sub eax, 0xfa4d852f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5b6da29e
add dword [ebp - 0x40], 0xf2e4a2ad
mov dword [ebp - 0x3c], 0xecb90a9a
sub dword [ebp - 0x3c], 0xba85be55
mov dword [ebp - 0x38], 0x7c9bc757
add dword [ebp - 0x38], 0xcfb07cd7
mov dword [ebp - 0x34], 0xac9aa329
sub dword [ebp - 0x34], 0xac9aa329
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x2070f8d4
sub dword [ebp - 0x40], 0xabfe8f7e
mov dword [ebp - 0x3c], 0x601a8edf
add dword [ebp - 0x3c], 0xe151d296
mov dword [ebp - 0x38], 0x13cfa46
sub dword [ebp - 0x38], 0x9dcd8dda
mov dword [ebp - 0x34], 0x6025a70b
sub dword [ebp - 0x34], 0x6025a70b
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x5c038
push 0
call eax
mov ecx, 0x19ed0d8e
sub ecx, 0x19ecccf8
xor esi, esi
add esi, eax
mov edx, 0x10069400
add edx, dword [ebp - 0x30]
mov ebx, 0x4c83db0e
xor dword [ebp - 4], 0xd1422dfa
mov edi, dword [edx]
add dword [ebp - 0x20], edi
xor edi, ebx
xor dword [ebp - 0x14], 0x3054b5c7
mov dword [esi], edi
add dword [ebp - 0xc], ecx
add esi, 0xe0c0e9b7
add esi, 0x1f3f164d
add edx, 4
loop 0x1001f6dc
add eax, 0x792cd970
add eax, 0x86d41bbb
mov ebx, eax
add eax, 0x100391fb
sub eax, 0x100391f6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4032fc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403e68
Capabilities:
Query or enumerate registry value

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

Function at 0x404ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x521054], 0
je 0x405055
cmp word [0x521330], 0xd7b2
jne 0x40501d
cmp dword [0x521338], 0
jbe 0x40501d
mov eax, 0x52132c
call dword [0x521348]
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 0x405080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51d030], 0
jne 0x405071
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405200
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 [0x51d034], 0
je 0x405226
mov edx, esi
mov eax, ebx
call dword [0x51d034]
jmp 0x405235
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x521055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c8
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 0x406f50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406f92
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406fb2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406640
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x412bac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x523b6c
push 0xa
push 0x412c40
mov eax, dword [0x523b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x412bd0
call fcn.0041b73c
push ebx
mov eax, dword [0x523b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x412be7
call fcn.0041b73c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x412bf9
call fcn.0041b73c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x523b70], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x523b74], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x523b78], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x523b7c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x523b80], ecx
add edx, dword [eax + 0x14]
mov dword [0x523b84], edx
pop esi
pop ebx
ret

Function at 0x414278
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x414321
test eax, edx
je 0x414324
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4142a1
push edx
mov edx, eax
mov eax, esp
call fcn.0040665c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4142b7
push eax
lea eax, [esp + 8]
call fcn.0040665c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4142c6
movzx eax, word [eax]
sub eax, ecx
jmp 0x4142ed
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 0x414307
add ecx, 4
js 0x4142de
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x414304
push eax
mov eax, ecx
mov edx, 2
call fcn.004052a0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4142eb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4142ed
xor eax, eax
ret
test eax, eax
je 0x414334
test edx, edx
jne 0x414288
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x419140
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 0x419179
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406584
jmp 0x419182
mov eax, ebx
mov edx, esi
call fcn.00406448
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41918c
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 0x4191ae
movzx eax, word [esp]
jmp 0x4191b0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419938
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x419a5d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041974c
mov esi, eax
mov eax, dword [0x51ff04]
cmp byte [eax], 0
je 0x419a05
mov eax, dword [0x51fba8]
call fcn.00403450
call fcn.00403180
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x419914]
call fcn.00408024
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x419a78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419a41
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x51fb24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x523b50]
call fcn.00408118
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419a64
lea eax, [ebp - 4]
mov edx, dword [0x419914]
call fcn.00408030
ret
Function at 0x41a6bc
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 0x41a792
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040649c
lea eax, [ebp - 4]
call fcn.00406eb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a77c
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a775
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.004064d4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a75f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a7a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a75f
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 0x41a77c
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a799
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x41b56b
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.0040565c
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 0x41b58e
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x41b590
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 0x41b5c9
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 0x41b5b3
mov eax, esp
cmp esi, eax
je 0x41b5d6
mov eax, esi
call fcn.00403034
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 0x41b610
cmp bl, 0
je 0x41b60c
cmp bl, 0x41
jl 0x41b607
cmp bl, 0x5a
jg 0x41b607
or bl, 0x20
xor al, bl
inc esi
jmp 0x41b5eb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41b550

Function at 0x432ca0
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.004329a4
dec esi
jne 0x432cc2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x433e88
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x525ea4
cmp dword [edi], 0
jne 0x433f04
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x525ea0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x51decc
mov ecx, 2
call fcn.004031d0
mov edx, 0x433e60
lea eax, [esi + 5]
call fcn.00433e80
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00433e80
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 0x433ed9
mov dword [0x525ea0], 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 0x436d0c
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.004064d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x436d64
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52009c]
mov dl, 1
mov eax, dword [0x43678c]
call fcn.00419ba8
call fcn.00404a74
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00436914
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 0x437ca4
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 0x437caa
ret
Function at 0x455400
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.00406448
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x455447
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.00406640
add esp, 0x200
pop esi
pop ebx
ret