joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6810
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x4d68d8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4d68dc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x4d68d8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d68cf
xor eax, eax
push ebp
push 0x4d68c8
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d68cf
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d6ad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d6ce4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x105
mov eax, dword [ebp - 0x18]
call fcn.00402834
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d6b4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x4d6b38
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00404ae8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6b55
mov eax, dword [ebp - 8]
call fcn.00402854
ret

Function at 0x4d7ff8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.00403230
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x4d8032
cmp byte [ebp - 0xa], 0x31
jne 0x4d8030
mov bl, 1
jmp 0x4d8032
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d9670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00464e14
test al, al
je 0x4d9729
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x4d9707
cmp word [esi + 0x5da], 0
je 0x4d96c1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x5dc]
call dword [esi + 0x5d8]
cmp byte [ebp - 9], 0
jne 0x4d96de
cmp dword [ebp - 4], 0
jbe 0x4d96da
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x4d96de
xor ebx, ebx
jmp 0x4d96e0
mov bl, 1
test bl, bl
jne 0x4d9729
mov eax, dword [0x504c64]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4d9729
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e094
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x4d9729
cmp byte [esi + 0x584], 0
jne 0x4d9729
mov edx, 0xfffffdf3
mov eax, esi
call fcn.004838cc
cmp eax, 4
jne 0x4d969e
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7ccc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404da0
xor eax, eax
push ebp
push 0x4e7dfd
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004ce6c4
mov ebx, eax
test ebx, ebx
je 0x4e7dd7
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.004ce6e4
jmp 0x4e7dc3
lea edx, [ebp - 0x138]
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e850
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409cfc
push dword [ebp - 0x134]
push 0x4e7e14
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404b60
push dword [ebp - 0x13c]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.00404cfc
jne 0x4e7db6
mov eax, dword [ebp - 0x124]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.004ce704
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e7d31
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7e04
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.00404914
lea eax, [ebp - 4]
call fcn.004048f0
ret
Function at 0x4e7e18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4e7e20
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4e8061
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402b68
test eax, eax
jle 0x4e7ebe
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.00402bc8
mov eax, dword [ebp - 0xc]
call fcn.00409bfc
test al, al
je 0x4e7ebe
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.00402bc8
mov eax, dword [ebp - 0x10]
call fcn.004e7ccc
push 0x30
push 0x4e8070
push 0x4e8078
push 0
call sub.user32.dll_MessageBoxA_1
push 0xbb8
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402bc8
mov eax, dword [ebp - 0x14]
call fcn.00409c30
push 0x34
push 0x4e8070
push 0x4e8094
push 0
call sub.user32.dll_MessageBoxA_1
cmp eax, 6
jne 0x4e7ebe
call fcn.004e8d8c
lea edx, [ebp - 0x1c]
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e850
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409cfc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4e80b8
call fcn.00404bfc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43905c]
call fcn.0043910c
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4e80d4
mov edx, 0x4e80e4
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
mov eax, ebx
call fcn.00403adc
lea edx, [ebp - 0x28]
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e850
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00409cfc
push dword [ebp - 0x24]
push 0x4e80f8
push dword [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x20]
call fcn.00409bfc
test al, al
je 0x4e8046
lea edx, [ebp - 0x34]
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e850
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00409cfc
push dword [ebp - 0x30]
push 0x4e80f8
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e850
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404cfc
je 0x4e8046
push 1
push 0
push 0x4e8104
lea edx, [ebp - 0x40]
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e850
push dword [ebp - 0x40]
push 0x4e8104
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x3c]
call fcn.00404db0
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e850
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00409cfc
push dword [ebp - 0x48]
push 0x4e80f8
push dword [ebp - 8]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x44]
call fcn.00404db0
push eax
push 0x4e8108
mov eax, dword [0x506100]
call fcn.00464b10
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [ebp - 4]
call fcn.00409c30
mov eax, dword [0x504c64]
mov eax, dword [eax]
call fcn.0047e32c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8068
lea eax, [ebp - 0x4c]
mov edx, 0x13
call fcn.00404914
ret
Function at 0x4e8fc8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
xor eax, eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e90c3
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.user32.dll_GetClientRect
push 0
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 4]
call fcn.004096b0
push 1
call sub.user32.dll_GetSystemMetrics
lea edx, [ebp - 8]
call fcn.004096b0
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x11c]
call fcn.0040a06c
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0x14]
call fcn.004096b0
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 4]
call fcn.00404cfc
jne 0x4e9096
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0x10]
call fcn.004096b0
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 8]
call fcn.00404cfc
jne 0x4e9096
mov edx, dword [ebp - 0xc]
mov eax, 0x4e90dc
call fcn.00404ef4
dec eax
jge 0x4e9096
mov bl, 1
jmp 0x4e9098
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e90ca
lea eax, [ebp - 0x124]
mov edx, 2
call fcn.00404914
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404914
ret
Function at 0x4eb87c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x94], 5
jbe 0x4eb930
xor eax, eax
push ebp
push 0x4eb926
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x439fa8]
call fcn.0043a114
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0043a1b4
xor ecx, ecx
mov edx, 0x4eb944
mov eax, ebx
call fcn.0043a2f8
mov edx, 0x4eb988
mov eax, ebx
call fcn.0043a824
test al, al
je 0x4eb905
mov edx, 0x4eb988
mov eax, ebx
call fcn.0043a718
mov esi, eax
jmp 0x4eb907
xor esi, esi
mov eax, ebx
call fcn.0043a184
mov eax, ebx
call fcn.00403adc
dec esi
jne 0x4eb91c
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4eb930
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f16cc
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404da0
xor eax, eax
push ebp
push 0x4f1734
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x1505
mov eax, dword [ebp - 4]
call fcn.00404bb0
test eax, eax
jle 0x4f1718
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
mov esi, ebx
shl esi, 5
add ebx, esi
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4f1701
and ebx, 0x7fffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f173b
lea eax, [ebp - 4]
call fcn.004048f0
ret
Function at 0x4030d8
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.00404804
test esi, esi
jne 0x40310e
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.004048f4
jmp 0x40312c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x40312c
cmp dword [ebx], 0
je 0x40312c
dec esi
jmp 0x403115
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037f8
Capabilities:
Query or enumerate registry value

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

Function at 0x404684
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x4046e5
cmp word [0x45921c], 0xd7b2
jne 0x4046ad
cmp dword [0x459224], 0
jbe 0x4046ad
mov eax, 0x459218
call dword [0x459234]
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 0x40470c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45702c], 0
jne 0x404701
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408184
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408214
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408214
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081c7
test edx, 3
jne 0x4081b6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081c1
jmp 0x4081c7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081c7
cmp dword [ecx - 8], 1
je 0x4081d1
mov edx, ebx
or edx, 3
call fcn.00404f50
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 0x4081e3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404804

Function at 0x408220
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082b0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082b0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408263
test edx, 3
jne 0x408252
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40825d
jmp 0x408263
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408263
cmp dword [ecx - 8], 1
je 0x40826d
mov edx, ebx
or edx, 3
call fcn.00404f50
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 0x40827f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404804

Function at 0x40b494
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 0x40b4cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048f4
jmp 0x40b4d6
mov eax, ebx
mov edx, esi
call fcn.00404858
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba0c
mov eax, dword [0x4589f8]
cmp byte [eax], 0
je 0x40bc10
mov eax, dword [0x45882c]
call fcn.004031c0
call fcn.00402de8
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.00408c2c
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 0x40bc58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc46
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4587d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b7f4]
call fcn.00405984
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 0x40c4a4
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 0x40c57a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040489c
lea eax, [ebp - 4]
call fcn.00404d18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c564
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c55d
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.00404cc8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c547
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c58c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c547
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 0x40c564
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c581
lea eax, [ebp - 4]
call fcn.00404804
ret

Function at 0x40d7e0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404804
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404cc8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40d825
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004048f4
jmp 0x40d83e
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404f50
push ebx
mov eax, dword [esi]
call fcn.00404cc8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41b13c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45c300
cmp dword [edi], 0
jne 0x41b1b8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45c2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x457ad4
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b114
lea eax, [esi + 5]
call fcn.0041b134
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b134
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 0x41b18d
mov dword [0x45c2fc], 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 0x41d838
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0041d288
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404cc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41d897
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x458930]
mov dl, 1
mov eax, dword [0x41d180]
call fcn.0040bd54
call fcn.0040424c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41d8a0
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.00404cc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d8f8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x458b08]
mov dl, 1
mov eax, dword [0x41d180]
call fcn.0040bd54
call fcn.0040424c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d2b8
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 0x41e754
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 0x41e75a
ret
Function at 0x42b574
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.00404804
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42b5c2
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.00404a74
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42f644
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 0x42f777
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 [0x41d1e0]
call fcn.0041d2e0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42f74d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d380
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a74
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42f78c
call fcn.00404b14
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d508
lea ecx, [ebp - 4]
mov edx, 0x42f7c8
mov eax, dword [ebp - 0xc]
call fcn.0041d768
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d75c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42f730
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42f7d4
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 [0x458468]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f737
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

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