joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fa0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 0xa
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x408022
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40800e
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x407ffc
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40800e
jmp 0x407fdf
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x18]
mov ebp, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret

Function at 0x409a50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x110]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x10], 0
and ecx, 3
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push str.ProgramFiles
call esi
call fcn.00407eb0
test eax, eax
je 0x409ada
mov al, byte [esp + 0x120]
test al, al
je 0x409ada
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.ProgramFiles_x86_
call esi
lea edx, [esp + 0x10]
push edx
push str._sGatewaySSLVPN
push ebx
push ebp
call fcn.00402420
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x409fe0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x40b4f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
push 0x4000
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40b51b
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x40b549
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 0x10
ret
push ebp
push esi
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x24]
push 0xea60
push 0x4000
push edi
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebp, eax
test ebp, ebp
jle 0x40b634
mov al, byte [esp + 0x28]
test al, al
je 0x40b607
lea eax, [ebp - 3]
xor esi, esi
test eax, eax
jle 0x40b550
cmp byte [esi + edi], 0xd
jne 0x40b59e
cmp byte [esi + edi + 1], 0xa
jne 0x40b59e
cmp byte [esi + edi + 2], 0xd
jne 0x40b59e
cmp byte [esi + edi + 3], 0xa
je 0x40b5a5
inc esi
cmp esi, eax
jl 0x40b583
jmp 0x40b550
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b5c2
mov ecx, ebp
sub ecx, esi
sub ecx, 4
push ecx
call eax
add esp, 4
test eax, eax
jl 0x40b644
sub ebp, esi
push esi
push edi
lea ebx, [ebx + ebp - 4]
call fcn.0040b3d0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jle 0x40b644
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
add ebp, 0xfffffffc
push edx
lea eax, [esi + edi + 4]
push ebp
push eax
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x28], 0
jmp 0x40b550
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b619
push ebp
call eax
add esp, 4
test eax, eax
jl 0x40b644
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 0
push edx
push ebp
push edi
push eax
add ebx, ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40b550
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
jmp 0x40b649
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
pop ebp
jne 0x40b664
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x40b677
pop edi
mov eax, 0xfffffffd
pop ebx
add esp, 0x10
ret
cmp eax, ebx
mov eax, 0xfffffffc
jne 0x40b682
mov eax, ebx
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x40bd50
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
lea eax, [esp + 0x9c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xb4], 1
je 0x40bdea
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
pop edi
jne 0x40bdb3
lea edx, [esp + 4]
mov dword [esp + 4], 0x94
push edx
call esi
mov eax, 1
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x40bdea
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x40bdea
jne 0x40bdea
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40bdea
cmp word [esp + 0x98], cx
jae 0x40bdea
mov eax, 1
pop esi
add esp, 0xc0
ret
xor eax, eax
pop esi
add esp, 0xc0
ret
Function at 0x411b2d
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041186a

Function at 0x42a402
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a189

Function at 0x42c696
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042be70

Function at 0x42c6a1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c0ab

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x4044c6
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040f950
mov eax, dword [0x28278c4]
mov ecx, dword [0x2827350]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x40459b
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x28278c4], 0x959
jne 0x40458a
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403f18
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x403f64
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0x403f70
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x1800]
push eax
push esi
push 0x403fa8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call fcn.00404374
add ebx, 8
dec edi
jne 0x4044f2
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4048b3
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1004
call fcn.0040f950
push ebx
push esi
xor esi, esi
cmp dword [0x28278c4], 0x400
push edi
jne 0x4049c7
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
lea eax, [esp + 0x414]
push eax
push esi
push 0x404134
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0x818]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [esp + 0x14]
push eax
push 0x40414c
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0x40415c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call fcn.00405104
pop ecx
push esi
push esi
call fcn.0040523a
push esi
call fcn.004058e9
add esp, 0xc
push esi
call fcn.00405b3b
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404aa0
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404cc0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405380
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404df0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004055e0
fstp st(0)
push esi
push esi
call fcn.00405734
push esi
call fcn.00405baf
add esp, 0x14
push esi
push esi
call fcn.0040513e
push esi
push esi
call fcn.00405094
push esi
call fcn.0040594e
add esp, 0x14
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor edi, edi
cmp edi, 0x9a1
jge 0x4049f3
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x4f47a90
jg 0x404a15
inc edi
cmp edi, 0x32ffca9
jl 0x4049cf
xor edi, edi
cmp edi, 0x16d2a
jge 0x404a26
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x404a44
inc edi
cmp edi, 0x3011b
jl 0x404a17
mov eax, dword [0x42fcac]
mov dword [0x28278c4], eax
call fcn.0040459e
mov edi, 0x2ec37
cmp dword [0x28278c4], 0x51f
jne 0x404a73
push esi
lea eax, [esp + 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x404a58
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4081d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c208]
jne 0x4081e2
repz ret
jmp fcn.0040d6b0
Function at 0x40f3ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a54b
and dword [ebp - 0x14], 0
cmp dword [0x4448a8], 0
mov dword [ebp - 0x18], eax
jne 0x40f45f
push 0x4036c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f507
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4036b4
push ebx
call edi
test eax, eax
je 0x40f507
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4036a4
push ebx
mov dword [0x4448a8], eax
call edi
push eax
call esi
push 0x403690
push ebx
mov dword [0x4448ac], eax
call edi
push eax
call esi
push 0x403674
push ebx
mov dword [0x4448b0], eax
call edi
push eax
call esi
mov dword [0x4448b8], eax
test eax, eax
je 0x40f45f
push 0x40365c
push ebx
call edi
push eax
call esi
mov dword [0x4448b4], eax
mov eax, dword [0x4448b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f4b8
cmp dword [0x4448b8], ecx
je 0x40f4b8
push eax
call esi
push dword [0x4448b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f4b8
test ebx, ebx
je 0x40f4b8
call edi
test eax, eax
je 0x40f4af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f4af
test byte [ebp - 8], 1
jne 0x40f4b8
or dword [ebp + 0x10], 0x200000
jmp 0x40f4eb
mov eax, dword [0x4448ac]
cmp eax, dword [ebp - 0x18]
je 0x40f4eb
push eax
call esi
test eax, eax
je 0x40f4eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f4eb
mov eax, dword [0x4448b0]
cmp eax, dword [ebp - 0x18]
je 0x40f4eb
push eax
call esi
test eax, eax
je 0x40f4eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4448a8]
call esi
test eax, eax
je 0x40f507
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f509
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081d8
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4047a0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406d54
test esi, esi
jne 0x4047d6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406eac
jmp 0x4047f4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046e4
mov edi, eax
test esi, esi
je 0x4047f4
cmp dword [ebx], 0
je 0x4047f4
dec esi
jmp 0x4047dd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405dc8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406078
mov byte [esp], al
cmp byte [esp], 0
jne 0x405f54
test edi, edi
je 0x405f54
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405e8b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405e66
cmp edi, 0xffffffff
je 0x405e27
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e27
mov byte [esp], 0
jmp 0x405f54
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405e66
test ebx, ebx
jne 0x405e5c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402694
test eax, eax
jne 0x405e5c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405f54
call 0x4060bc
dec ebp
test ebp, ebp
jg 0x405e0c
cmp edi, 0xffffffff
je 0x405e8b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e89
mov byte [esp], 0
jmp 0x405f54
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405dd6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x405e8b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405fc4
mov edx, eax
mov ebx, dword [0x44a8f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405ef2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ef0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405ef2
xor edi, edi
cmp byte [esp], 0
je 0x405f1b
mov ebx, dword [esi]
test bl, 1
jne 0x405f34
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x405ef8
mov byte [esp + 1], 1
jmp 0x405f34
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x405f1b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405ea5
cmp byte [esp], 0
je 0x405f54
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406abc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44a050], 0
je 0x406b23
cmp word [0x44a33c], 0xd7b2
jne 0x406ae5
cmp dword [0x44a344], 0
jbe 0x406ae5
mov eax, 0x44a338
call dword [0x44a354]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406b50
call fcn.00407510
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x448032], 0
jne 0x406b3f
push 0
push 0x4489c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408d30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408e95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406d54
cmp si, word [0x448a00]
jb 0x408dc8
cmp si, word [0x448c00]
ja 0x408dc8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408dc8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x448a00]
jae 0x408da2
mov edi, ebx
dec edi
jmp 0x408dc3
cmp si, word [ebx*8 + 0x448a00]
jbe 0x408db2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408dc3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x448a04]
call fcn.00408c40
jmp 0x408dc8
cmp edi, dword [ebp - 8]
jae 0x408d8c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408e77
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e77
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407870
push dword [ebp - 0x160]
push 0x408eb0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407870
push dword [ebp - 0x164]
push 0x408ec0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407870
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e9c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406db4
ret
Function at 0x409048
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40914b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44cb80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x44cb98]
jne 0x409094
mov eax, esi
mov edx, 0x44cb9a
mov ecx, 0x55
call fcn.00407870
push 0x44cb80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409135
push 0x44cb80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406d54
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409103
cmp byte [0x44cb7c], 0
je 0x4090c8
mov edx, esi
mov eax, ebx
call fcn.00408f2c
jmp 0x409103
mov edx, esi
mov eax, ebx
call fcn.00408d30
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409103
cmp dword [esi], 0
je 0x4090ec
mov eax, esi
mov edx, 0x409164
call fcn.004079c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408d30
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004079c8
push 0x44cb80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x44cb98], bx
push 0xaa
mov eax, dword [esi]
call fcn.004077dc
push eax
push 0x44cb9a
call sub.kernel32.dll_lstrcpynW
push 0x44cb80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409152
lea eax, [ebp - 4]
call fcn.00406d54
ret