joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afe34
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4afe3c
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4affdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x4afff4
call fcn.00404960
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
mov cl, byte [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0x1c]
call fcn.004aea30
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x4b0000
call fcn.0047e528
mov eax, dword [ebx + 0xc]
call fcn.00404914
test eax, eax
jle 0x4afef2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov cl, byte [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0xc]
call fcn.004aea30
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4b0038
call fcn.0047e528
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040491c
mov eax, esi
mov edx, 0x4b0050
call fcn.0040491c
mov eax, dword [ebx + 0x14]
call fcn.00404914
test eax, eax
jle 0x4aff70
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4b005c
call fcn.0047e528
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040491c
mov eax, dword [ebx + 0x10]
call fcn.00404914
test eax, eax
jle 0x4aff64
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4b0078
call fcn.0047e528
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040491c
mov eax, esi
mov edx, 0x4b0050
call fcn.0040491c
mov eax, dword [ebx + 0x18]
call fcn.00404914
test eax, eax
jle 0x4affa3
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4b0090
call fcn.0047e528
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040491c
mov eax, esi
mov edx, 0x4b0050
call fcn.0040491c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4affe6
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404678
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404678
lea eax, [ebp - 4]
call fcn.00404654
ret
Function at 0x4ca25c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41865c]
call fcn.0040516c
xor eax, eax
push ebp
push 0x4ca3a0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dc7cc], 0
jne 0x4ca2af
mov ecx, dword [0x4dc938]
mov dl, 1
mov eax, dword [0x407da0]
call fcn.0040d598
call fcn.00403fd0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403118
mov eax, ebx
call fcn.00404fbc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4ca3b0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406340
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404fcc
test eax, eax
jle 0x4ca347
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4ca340
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004048dc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004048c4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408d24
test eax, eax
jne 0x4ca340
mov ebx, 0x15
jmp 0x4ca34c
mov ebx, 0x10
jmp 0x4ca34c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4dc7cc]
call fcn.004ca1b4
mov eax, dword [ebp - 8]
call fcn.004ca1b4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca3a7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404678
lea eax, [ebp - 0x10]
mov edx, dword [0x41865c]
call fcn.0040523c
ret

Function at 0x4d2f4c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d2ff9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3c
call fcn.004027d8
mov ebx, eax
mov dword [ebx], 0x3c
xor eax, eax
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
mov eax, 0x4d3008
mov dword [ebx + 0xc], eax
lea edx, [ebp - 4]
mov eax, esi
call fcn.00409814
mov eax, dword [ebp - 4]
call fcn.00404b14
mov dword [ebx + 0x10], eax
mov eax, edi
call fcn.00404b14
mov dword [ebx + 0x14], eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.0040978c
mov eax, dword [ebp - 8]
call fcn.00404b14
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 1
xor eax, eax
mov dword [ebx + 0x20], eax
push ebx
call sub.shell32.dll_ShellExecuteExA
mov edx, 0x3c
mov eax, ebx
call fcn.004027f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3000
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404678
ret
Function at 0x4d3010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d30bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3c
call fcn.004027d8
mov ebx, eax
mov dword [ebx], 0x3c
xor eax, eax
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
mov eax, 0x4d30cc
mov dword [ebx + 0xc], eax
lea edx, [ebp - 4]
mov eax, esi
call fcn.00409814
mov eax, dword [ebp - 4]
call fcn.00404b14
mov dword [ebx + 0x10], eax
mov eax, edi
call fcn.00404b14
mov dword [ebx + 0x14], eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.0040978c
mov eax, dword [ebp - 8]
call fcn.00404b14
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x20], eax
push ebx
call sub.shell32.dll_ShellExecuteExA
mov edx, 0x3c
mov eax, ebx
call fcn.004027f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d30c2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404678
ret

Function at 0x4d30d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b04
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4d3242
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004767b8
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004767d8
jmp 0x4d320e
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004048c4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409814
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408b44
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408b44
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404a60
je 0x4d31ee
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004048c4
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408b44
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408b44
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404a60
jne 0x4d3205
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004767f8
test eax, eax
jne 0x4d314f
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3249
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404678
lea eax, [ebp - 4]
call fcn.00404654
ret
Function at 0x4030b8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d10
test esi, esi
jne 0x4030ee
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e00
jmp 0x40310c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fbc
mov edi, eax
test esi, esi
je 0x40310c
cmp dword [ebx], 0
je 0x40310c
dec esi
jmp 0x4030f5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d04
Capabilities:
Query or enumerate registry value

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

Function at 0x404b90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x404bf1
cmp word [0x45821c], 0xd7b2
jne 0x404bb9
cmp dword [0x458224], 0
jbe 0x404bb9
mov eax, 0x458218
call dword [0x458234]
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 0x404c18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45602c], 0
jne 0x404c0d
push 0
push 0x456754
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060ac
Capabilities:
Get geographical location
Query or enumerate registry value

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_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40612f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40612f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061b8
xor eax, eax
push ebp
push 0x4061b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ee8
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.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406196
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406318
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406196
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 0x4061b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4062d2
cmp byte [ebp - 0xd], 0
jne 0x4061ff
cmp byte [ebp - 0x12], 0
je 0x4062d2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406218
dec ebx
cmp byte [ebx], 0x2e
je 0x406227
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406217
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062d2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406264
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_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4062d2
cmp byte [ebp - 0xd], 0
je 0x4062d2
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_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4062d2
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_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4086b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408740
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408740
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4086f3
test edx, 3
jne 0x4086e2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4086ed
jmp 0x4086f3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4086f3
cmp dword [ecx - 8], 1
je 0x4086fd
mov edx, ebx
or edx, 3
call fcn.0040545c
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 0x40870f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404d10

Function at 0x40874c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4087dc
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4087dc
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40878f
test edx, 3
jne 0x40877e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408789
jmp 0x40878f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40878f
cmp dword [ecx - 8], 1
je 0x408799
mov edx, ebx
or edx, 3
call fcn.0040545c
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 0x4087ab
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404d10

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409001
test al, 0x10
je 0x409005
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bb28
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 0x40bb61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e00
jmp 0x40bb6a
mov eax, ebx
mov edx, esi
call fcn.00404d64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0a0
mov eax, dword [0x457a28]
cmp byte [eax], 0
je 0x40c2a4
mov eax, dword [0x457854]
call fcn.004034c4
call fcn.00402e28
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.004091b0
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 0x40c2ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4577fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45a7f4]
call fcn.00405e90
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 0x40cb38
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 0x40cc0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404da8
lea eax, [ebp - 4]
call fcn.00405224
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004051d4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cbf8
mov eax, ebx
call fcn.00402ccc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cbf1
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.004051d4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cbdb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc20
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cbdb
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 0x40cbf8
mov eax, dword [ebp - 0x10]
call fcn.00402ce8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc15
lea eax, [ebp - 4]
call fcn.00404d10
ret
Function at 0x41ba1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45b300
cmp dword [edi], 0
jne 0x41ba98
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45b2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x456b58
mov ecx, 2
call fcn.00402ebc
mov edx, 0x41b9f4
lea eax, [esi + 5]
call fcn.0041ba14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ba14
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 0x41ba6d
mov dword [0x45b2fc], 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 0x41f16c
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.004051d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41f1c4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x457b3c]
mov dl, 1
mov eax, dword [0x41eb6c]
call fcn.0040c3e8
call fcn.00404758
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041ec74
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 0x420124
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 0x42012a
ret
Function at 0x42a9ec
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.00404d10
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42aa3a
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.00404f80
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42eabc
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 0x42ebef
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 [0x41ebcc]
call fcn.0041ec9c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42ebc5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041ed3c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404f80
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42ec04
call fcn.00405020
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041eec4
lea ecx, [ebp - 4]
mov edx, 0x42ec40
mov eax, dword [ebp - 0xc]
call fcn.0041f0f4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040ddf0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42eba8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42ec4c
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 [0x4574b0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ebaf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

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