joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1bf8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a1da5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a1d86
mov dl, 1
mov eax, dword [0x42a2b8]
call fcn.004369b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.004076c4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a1d75
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00485e50
test al, al
je 0x4a1d68
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4a1db4
lea eax, [ebp - 0x394]
call fcn.00414040
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a1d68
xor eax, eax
push ebp
push 0x4a1d61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a1e24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a1d4a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004078bc
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4a1d4a
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004078bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1d68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a1c6b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.004368ec
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1dac
lea eax, [ebp - 0x3a0]
call fcn.004076b4
ret

Function at 0x4a2904
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x53d4cc]
cmp byte [eax + 0xad], 0
jne 0x4a2976
cmp dword [0x53d4e4], 0
jne 0x4a2936
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x53256c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x53d4e4], eax
cmp dword [0x53d4e0], 0
jne 0x4a2951
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x53d4e0], eax
cmp dword [0x53d4e8], 0
jne 0x4a2976
push esp
push 0
push 0
mov eax, dword [0x532568]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x53d4e8], eax
pop edx
ret
Function at 0x4a2c44
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a2c5b
add esp, 0xfffffff0
call fcn.00405ad8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043df1c
mov eax, dword [0x5347e0]
cmp byte [eax], 0
jne 0x4a2c88
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x534c90]
cmp word [eax + 2], 0
jne 0x4a2ca2
mov eax, dword [0x534c90]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a4d08
mov eax, dword [0x534e10]
cmp word [eax + 2], 0
jne 0x4a2cbc
mov eax, dword [0x534e10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004a4f18
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x447184]
call fcn.0044c078
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4a53cc
mov dl, 1
mov eax, dword [0x4273b0]
call fcn.0040557c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4273b0]
call fcn.0040557c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44a734]
call fcn.00452d20
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a2e9c
mov eax, dword [0x534aa4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00453120
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4a568c
mov dl, 1
mov eax, dword [0x4273b0]
call fcn.0040557c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x534aa4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00413e34
test eax, eax
je 0x4a2dcd
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00413bc4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00413e18
test eax, eax
je 0x4a2de5
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004078bc
push ebx
push 0x4a46d8
call fcn.00498e3c
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x5347e0]
cmp byte [eax], 0
jne 0x4a2e36
mov eax, ebx
call fcn.004a3010
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004a58b8
mov eax, ebx
call fcn.004a64ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a2e93
call fcn.00405b30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a32e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a3386
cmp dword [ebx + 0x94], 0
jne 0x4a3380
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a3230
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a3380
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4a3346
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a3380
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00432d14
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a3355
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a35a4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x53d4cc]
cmp dword [eax + 0x170], 0
je 0x4a3709
test bl, bl
jne 0x4a3657
cmp dword [esi + 0x9c], 0
jne 0x4a364c
mov eax, esi
call fcn.004a633c
push eax
push 0x4a34b0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a361d
mov eax, dword [0x53d4cc]
cmp byte [eax + 0xd3], 0
je 0x4a361d
mov eax, dword [esi + 0xd8]
call fcn.00408d70
mov edi, eax
cmp edi, 0
jl 0x4a361d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a3606
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a364c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00432d14
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a362c
inc dword [esi + 0x9c]
jmp 0x4a3709
cmp dword [esi + 0x9c], 0
jle 0x4a3709
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a3709
cmp dword [esi + 0x44], 0
je 0x4a36b4
mov eax, dword [0x53d4cc]
cmp byte [eax + 0xd3], 0
je 0x4a36b4
mov eax, dword [esi + 0xd8]
call fcn.00408d70
mov edi, eax
cmp edi, 0
jl 0x4a36b4
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a369d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a36e3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00432d14
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a36c3
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x496d14]
call fcn.00408f30
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a4324
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a438f
cmp byte [ebx + 0xd3], 0
jne 0x4a438f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407800
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a437c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a439c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004076c4
jmp 0x4a439c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004076c4
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a5aa0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a5b0e
mov eax, esi
call fcn.0047fed8
test al, al
je 0x4a5b0e
mov eax, dword [ebx + 0x84]
call fcn.0047fb2c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a5b0e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a5b02
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047fb2c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00476f2c
jmp 0x4a5b0e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a58d8
pop esi
pop ebx
ret
Function at 0x523d2c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x523e19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3e8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x523df6
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3e8]
mov edx, dword [ebp - 0xc]
call fcn.00432d14
mov ebx, eax
lea eax, [ebp - 0x18]
mov edx, dword [ebx + 0x10]
call fcn.00407924
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00523198
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3dc]
lea eax, [ebp - 4]
call fcn.00407b90
mov eax, dword [ebp - 4]
call fcn.00413710
test al, al
je 0x523dea
xor eax, eax
push ebp
push 0x523de0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407750
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523dea
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x523d71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523e20
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004076bc
lea eax, [ebp - 4]
call fcn.004076b4
ret

Function at 0x524064
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004076ac
lea esi, [ebp - 0x238]
xor eax, eax
push ebp
push 0x5241bf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.00522970
mov dword [ebp - 0xc], eax
mov dword [esi], 0x22c
xor eax, eax
push ebp
push 0x524192
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00522990
mov ebx, eax
jmp 0x524173
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 4]
call fcn.00413930
mov eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x244]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004078bc
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.00413930
mov eax, dword [ebp - 0x240]
pop edx
call fcn.004125f8
test al, al
jne 0x52414f
lea eax, [ebp - 0x248]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004078bc
mov eax, dword [ebp - 0x248]
mov edx, dword [ebp - 4]
call fcn.004125f8
test al, al
je 0x524167
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.005229b0
mov ebx, eax
test ebx, ebx
jne 0x5240e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524199
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x526818
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004076ac
mov eax, dword [ebp - 8]
call fcn.004076ac
lea ebx, [ebp - 0x44]
xor eax, eax
push ebp
push 0x5268bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor ecx, ecx
mov edx, 0x3c
call fcn.00404e14
mov dword [ebx], 0x3c
mov dword [ebx + 4], 0x40
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00407750
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00407750
mov dword [ebx + 0x14], eax
xor eax, eax
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_ShellExecuteExW
push 0xffffffffffffffff
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5268c3
lea eax, [ebp - 8]
mov edx, 2
call fcn.004076bc
ret
Function at 0x4030a4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4030e0
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403100
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d04
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403264
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403a20
Capabilities:
Query or enumerate registry value

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

Function at 0x404914
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c104c], 0
je 0x404975
cmp word [0x4c1220], 0xd7b2
jne 0x40493d
cmp dword [0x4c1228], 0
jbe 0x40493d
mov eax, 0x4c121c
call dword [0x4c1238]
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 0x40499c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bc030], 0
jne 0x404991
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408dd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408e26
test eax, edx
je 0x408e29
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408de9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408e0f
add ecx, 4
js 0x408dff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408e0c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408e35
test edx, edx
jne 0x408ddc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404f24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4098b6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4098d7
cmp ebx, 3
je 0x4098d7
cmp ebx, 0x7b
je 0x4098d7
mov eax, esi
call fcn.00409858
test al, al
jne 0x4098db
xor eax, eax
jmp 0x4098dd
mov al, 1
pop esi
pop ebx
ret

Function at 0x40c5f0
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 0x40c629
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b84
jmp 0x40c632
mov eax, ebx
mov edx, esi
call fcn.00404ae8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c63c
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 0x40c65e
movzx eax, byte [esp]
jmp 0x40c660
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ccf0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb68
mov eax, dword [0x4c056c]
cmp byte [eax], 0
je 0x40cd6c
mov eax, dword [0x4c02cc]
call fcn.0040336c
call fcn.00403030
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.00409b8c
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 0x40cdb4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cda2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c025c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c37f8]
call fcn.00406170
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 0x40d698
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 0x40d76e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404b2c
lea eax, [ebp - 4]
call fcn.00404f7c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d758
mov eax, ebx
call fcn.00402ed4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d751
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.00404f24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d73b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d780
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d73b
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 0x40d758
mov eax, dword [ebp - 0x10]
call fcn.00402ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d775
lea eax, [ebp - 4]
call fcn.00404a94
ret

Function at 0x423a7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c59ec
cmp dword [edi], 0
jne 0x423af8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c59e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4bcc10
mov ecx, 2
call fcn.0040313c
mov edx, 0x423a54
lea eax, [esi + 5]
call fcn.00423a74
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423a74
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 0x423acd
mov dword [0x4c59e8], 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 0x4283e8
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.00404f24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x428440
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c06e8]
mov dl, 1
mov eax, dword [0x427ef4]
call fcn.0040ced4
call fcn.004044dc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427ffc
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 0x4295d0
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 0x4295d6
ret