joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bef0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46bf68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x48c6fc]
cmp byte [eax], 0
je 0x46bf20
push esi
push ebx
call sub.kernel32.dll_MoveFileW
mov ebx, eax
jmp 0x46bf4d
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404738
mov eax, dword [ebp - 4]
call fcn.004049d0
push eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404738
mov eax, dword [ebp - 8]
call fcn.004049d0
push eax
call sub.kernel32.dll_MoveFileA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bf6f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404524
ret

Function at 0x46c218
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00407814
cmp ax, 0xffff
jne 0x46c239
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
mov dword [ebp - 8], ebx
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x46c2ba
push eax
push edi
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x46c2ba
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x46c280
inc eax
movzx edx, word [ebx]
add edx, edx
add ebx, edx
add ebx, 2
dec eax
jne 0x46c273
movzx esi, word [ebx]
add ebx, 2
cmp dword [ebp - 4], 0
je 0x46c2ba
cmp dword [ebp + 8], 0
jle 0x46c2ba
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.00428f6c
mov esi, eax
test esi, esi
jle 0x46c2b1
mov ecx, esi
add ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00407828
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x46cdbc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x46ce20
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404780
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409470
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce27
lea eax, [ebp - 0xc]
call fcn.00404500
ret
Function at 0x46ce7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x46ced8
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x46cea7
call fcn.0040e9e8
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402c9c
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x46ced8
call fcn.0040e9e8
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x46f0d4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, 8
mov edx, 0x3020100
mov dword [eax], edx
add edx, 0x4040404
mov dword [eax + 4], edx
add edx, 0x4040404
mov dword [eax + 8], edx
add edx, 0x4040404
mov dword [eax + 0xc], edx
add edx, 0x4040404
mov dword [eax + 0x10], edx
add edx, 0x4040404
mov dword [eax + 0x14], edx
add edx, 0x4040404
mov dword [eax + 0x18], edx
add edx, 0x4040404
mov dword [eax + 0x1c], edx
add edx, 0x4040404
add eax, 0x20
dec ecx
jne 0x46f0de
ret

Function at 0x472404
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47247b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404798
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00409924
mov eax, dword [ebp - 4]
call fcn.00472344
test al, al
je 0x47244b
mov byte [ebp - 5], 1
jmp 0x472460
mov eax, dword [ebp - 0xc]
call fcn.004049d0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472482
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404524
ret

Function at 0x472778
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x47279b
and ecx, ecx
jle 0x47279b
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4727a1]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x47278b
pop edi
pop ebx
ret

Function at 0x472d7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x472dd9
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 0xc]
call fcn.00472ccc
xor al, byte [ebp - 0xe]
mov byte [ebp - 0xd], al
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
call fcn.00472c34
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x472d9e
mov esp, ebp
pop ebp
ret
Function at 0x472e34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0x12345678
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0x23456789
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0x34567890
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 4]
call fcn.004047d0
dec eax
test eax, eax
jl 0x472eaa
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
call fcn.004049d0
add eax, dword [ebp - 0x10]
mov al, byte [eax]
mov edx, dword [ebp - 8]
call fcn.00472c34
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x472e8d
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.00472ccc
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor al, byte [edx + ecx]
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 8]
mov al, byte [ebp - 0x11]
call fcn.00472c34
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x11]
mov byte [eax + edx], cl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xc
jne 0x472eaf
mov esp, ebp
pop ebp
ret
Function at 0x47f034
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47f0f5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x113]
mov edx, 0x47f108
call fcn.00409c34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
xor edx, edx
call fcn.00404f90
je 0x47f09c
lea eax, [ebp - 0x21c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.00404798
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x108]
call fcn.00409c34
jmp 0x47f0ad
lea eax, [ebp - 0x108]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x113]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x105
call fcn.00404db4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f0fc
lea eax, [ebp - 0x21c]
call fcn.00404500
ret
Function at 0x401340
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
lea esi, [ebp - 0x483]
push ebx
sub esp, 0x48c
mov ebx, 0xff
movzx eax, byte [0x40500a]
mov dword [esp + 8], ebx
mov edx, dword [str..]
mov dword [esp + 4], edi
lea ebx, [ebp - 0x378]
mov dword [esp], esi
lea esi, [ebp - 0x268]
lea edi, [ebp - 0x158]
mov dword [ebp - 0x488], edx
mov byte [ebp - 0x484], al
call sub.msvcrt.dll_memset
mov dword [esp], esi
mov ecx, dword [ebp + 8]
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
lea eax, [ebp - 0x488]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
mov dword [esp + 4], edi
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
cmp eax, 0xffffffff
mov ebx, eax
jne 0x4013f2
jmp 0x401470
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
dec eax
jne 0x401460
cmp byte [ebp - 0x12c], 0x2e
je 0x4013e0
mov dword [esp], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x5c
lea ecx, [ebp - 0x12c]
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.msvcrt.dll_strcat
test byte [ebp - 0x158], 0x10
jne 0x4013e0
mov dword [esp], esi
mov edx, 6
mov dword [esp + 4], edx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
dec eax
je 0x4013f2
lea esi, [esi]
mov dword [esp], ebx
call sub.KERNEL32.dll_FindClose
sub esp, 4
call sub.KERNEL32.dll_GetLastError
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push 0
mov eax, dword [str.RZR1911REGSETUP]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40104b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40103a
push 9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x40118c
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [str.STARCRAFT.EXE]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x4010b2
mov edx, dword [str.Starcraft:_Brood_War]
push edx
push str.You_must_run_SETUP_from_the_directory_where_n_s_has_been_installed.
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x406178
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40118c
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x65
mov eax, dword [ebp + 8]
push eax
call fcn.00401192
add esp, 8
test eax, eax
jne 0x4010d8
xor eax, eax
jmp 0x40118c
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401246
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010f8
xor eax, eax
jmp 0x40118c
lea eax, [ebp - 0x204]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x204]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040137e
add esp, 8
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 1
jne 0x401140
push 0x40
push str.RAZOR_1911_Registry_Setup
push str.Registry_setup_has_been_successfully_completed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0xe141
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401186
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401153
mov eax, dword [ebp - 0x220]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4026c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406390
cmp edx, dword [eax]
je 0x4026e3
add eax, 8
inc ecx
cmp eax, 0x406420
jl 0x4026d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406390]
jne 0x402811
mov eax, dword [0x406748]
cmp eax, 1
je 0x4027eb
test eax, eax
jne 0x402714
cmp dword [0x4062e4], 1
je 0x4027eb
cmp edx, 0xfc
je 0x402811
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40274b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00401910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401a00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40278e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401a00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053f0
push edi
call fcn.004038f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00401910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401920
lea eax, [ebp - 0xa0]
push 0x4053d0
push eax
call fcn.00401920
push dword [esi + 0x406394]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401920
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040385e
add esp, 0x2c
pop edi
jmp 0x402811
lea eax, [ebp + 8]
lea esi, [esi + 0x406394]
push 0
push eax
push dword [esi]
call fcn.00401a00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x5f3a0247
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3b28192b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x427b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
or ebp, 0xffffffff
jmp 0x427b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427b28
mov eax, 1
add ebx, ebx
jne 0x427b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b40
jne 0x427b5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b40
xor ecx, ecx
sub eax, 3
jb 0x427b70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427be2
mov ebp, eax
add ebx, ebx
jne 0x427b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427b88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427bac
inc ecx
add ebx, ebx
jne 0x427b98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427b8d
jne 0x427ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427bcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427bbd
jmp 0x427b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427bcc
add edi, ecx
jmp 0x427b2e
pop esi
mov edi, esi
mov ecx, 0xd81
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427bea
cmp byte [edi], 7
jne 0x427bea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x427bef
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x427c67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28c68]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28d1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x427c1c
mov ecx, edi
jns 0x427c4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28d20]
or eax, eax
je 0x427c61
mov dword [ebx], eax
add ebx, 4
jmp 0x427c39
call dword [esi + 0x28d24]
popal
jmp 0x40421c
Function at 0x402a14
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.004040c0
test esi, esi
jne 0x402a4a
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.004041b0
jmp 0x402a68
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402a68
cmp dword [ebx], 0
je 0x402a68
dec esi
jmp 0x402a51
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40317c
Capabilities:
Query or enumerate registry value

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

Function at 0x403ec0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x403f21
cmp word [0x46c21c], 0xd7b2
jne 0x403ee9
cmp dword [0x46c224], 0
jbe 0x403ee9
mov eax, 0x46c218
call dword [0x46c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46a070
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 0x403f48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46a034], 0
jne 0x403f3d
push 0
push 0x46a068
push 0x46a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404074
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46c049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40403c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d4c
Capabilities:
Get geographical location

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 0x405db2
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_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404330
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d34
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d9c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405db9
lea eax, [ebp - 0x10]
call fcn.004040c0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404580
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408601
test al, 0x10
jne 0x408605
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b06c
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 0x40b0a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041b0
jmp 0x40b0ae
mov eax, ebx
mov edx, esi
call fcn.00404114
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0b8
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 0x40b0d9
mov al, byte [esp]
jmp 0x40b0db
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b760
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5d8
mov eax, dword [0x46b8d8]
cmp byte [eax], 0
je 0x40b7dc
mov eax, dword [0x46b598]
call fcn.00402b48
call fcn.00402854
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.0040880c
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 0x40b824
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b812
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b524]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c664]
call fcn.00405260
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