joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4274ac
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x427536
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
jne 0x42751d
mov eax, dword [0x48a490]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x4274eb
push ebx
push 0x427544
call fcn.004403ec
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x427519
lea edx, [ebp - 4]
mov eax, dword [0x48a198]
call fcn.004065e4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4082dc]
call fcn.0040c1b0
call fcn.004036c8
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42753d
lea eax, [ebp - 4]
call fcn.00403bec
ret

Function at 0x4275e4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4276c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004274ac
xor edx, edx
push ebp
push 0x4276a5
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42766e
mov edx, ebx
mov eax, dword [0x4193ec]
call fcn.0041d6a4
test al, al
je 0x42765e
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0041d578
call fcn.00403768
jmp 0x4276ac
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x427629
lea edx, [ebp - 8]
mov eax, dword [0x48a220]
call fcn.004065e4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4082dc]
call fcn.0040c1b0
call fcn.004036c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4276ac
mov eax, dword [ebp - 4]
call fcn.00427480
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4276c9
lea eax, [ebp - 8]
call fcn.00403bec
ret

Function at 0x4276d0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004274ac
xor eax, eax
push ebp
push 0x427728
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42772f
mov eax, dword [ebp - 4]
call fcn.00427480
ret
Function at 0x427738
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004274ac
xor edx, edx
push ebp
push 0x42778d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427794
mov eax, dword [ebp - 4]
call fcn.00427480
ret

Function at 0x427804
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004274ac
xor eax, eax
push ebp
push 0x427879
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00427464
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0041d678
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x427863
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427880
mov eax, dword [ebp - 4]
call fcn.00427480
ret

Function at 0x427888
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004274ac
xor eax, eax
push ebp
push 0x4278fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00427464
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4278e7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427904
mov eax, dword [ebp - 4]
call fcn.00427480
ret
Function at 0x448560
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x448595
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403cd0
jmp 0x44859f
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403c84
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x449474
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x4494ac
mov eax, esi
call fcn.00432974
test al, al
je 0x4494ac
mov eax, dword [ebx + 0x6c]
call fcn.0043254c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4494ac
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0043254c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44e5d0
Capabilities:
Encode data using xor

Disassembly:
call esp
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0044db4d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0044db02
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0044db3d
xor dword [eax], ebp
bound edi, qword [ecx]
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.0044db4d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0044db02
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
invalid
test ebx, esp
cli
invalid
Function at 0x401c5b
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
nop
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov eax, 2
push eax
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, 0
push eax
call sub.user32.dll_OpenClipboard
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
mov eax, 1
push eax
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
leave
ret
Function at 0x4040b4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x4040e2
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x4040ea
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x404119
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x40413f
mov eax, 0x405774
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x404168
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x404168
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x404168
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00403824
leave
ret
Function at 0x40214a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43814c]
jne 0x402154
repz ret
jmp fcn.00402c23

Function at 0x40fb76
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43814c]
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.0040595d
and dword [ebp - 0x14], 0
cmp dword [0x43afe4], 0
mov dword [ebp - 0x18], eax
jne 0x40fc29
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fcd1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fcd1
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43afe4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43afe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43afec], eax
call edi
push eax
call esi
mov dword [0x43aff4], eax
test eax, eax
je 0x40fc29
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43aff0], eax
mov eax, dword [0x43aff0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fc82
cmp dword [0x43aff4], ecx
je 0x40fc82
push eax
call esi
push dword [0x43aff4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fc82
test ebx, ebx
je 0x40fc82
call edi
test eax, eax
je 0x40fc79
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fc79
test byte [ebp - 8], 1
jne 0x40fc82
or dword [ebp + 0x10], 0x200000
jmp 0x40fcb5
mov eax, dword [0x43afe8]
cmp eax, dword [ebp - 0x18]
je 0x40fcb5
push eax
call esi
test eax, eax
je 0x40fcb5
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fcb5
mov eax, dword [0x43afec]
cmp eax, dword [ebp - 0x18]
je 0x40fcb5
push eax
call esi
test eax, eax
je 0x40fcb5
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43afe4]
call esi
test eax, eax
je 0x40fcd1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fcd3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040214a
leave
ret
Function at 0x429730
Capabilities:
Get disk information
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43814c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x43f1fc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x43ee64], edi
cmp eax, 0x3dc
jne 0x42977a
push 0
push 0
push 0
call esi
mov eax, dword [0x43f1fc]
dec ebx
jne 0x429760
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
jmp 0x429790
cmp eax, 0x933
jne 0x4297d7
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x43f1fc]
cmp esi, 0x845fef
jne 0x4297ee
mov eax, dword [0x439d60]
add eax, 0xa231
mov dword [0x43f1fc], eax
cmp eax, 0x141
jne 0x429809
mov dword [0x43b508], 0xec58acac
mov dword [0x43b50c], 0xffffffff
inc esi
cmp esi, 0x12d16a2
jl 0x429790
call fcn.004292b0
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040214a
add esp, 0x41c
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x408ecc
nop
mov ecx, 0x2d3a565d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0xc5c62c8
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
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 0x401440
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xbbeaf81f
xor ebx, 0xbfeaf81f
jmp 0x4014f0
mov edx, 0xa919783e
xor edx, 0xa919783a
mov ecx, 0x25135daf
xor ecx, 0x25136daf
mov eax, 0x500
ror eax, 0x1c
push edx
push ecx
push eax
mov edx, dword [ebp - 0xb4]
rol edx, 4
rol edx, 0xa
mov dword [ebp - 8], edx
push ebx
call fcn.00401644
push esi
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4014f0
sub ebx, 0x86b78ac7
mov dword [ebp - 0x10], ebx
ret
Function at 0x40e300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x446b54
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x70], ebx
call dword [0x4425b0]
push 0xfffffffffffffffe
lea edx, [esp + 0x18]
push 0xfffffffffffffffe
push edx
call dword [0x442598]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x7c]
sub eax, esi
neg ecx
sbb ecx, ecx
mov dword [esp + 0x24], eax
and ecx, 0x12c
mov edi, 0x4517d4
add ecx, 0x190
xor eax, eax
mov dword [esp + 0x34], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x28], ebx
shr ecx, 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 1
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call dword [0x44212c]
push eax
lea ecx, [esp + 0x10]
call fcn.0043288e
mov esi, dword [esp + 0x70]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x28]
push 1
mov ecx, esi
mov edi, eax
call fcn.004320ac
mov edx, dword [esi]
mov ebx, eax
lea eax, [esp + 0x14]
push 0x21
push eax
lea ecx, [esp + 0x80]
push 1
push ecx
mov ecx, esi
call dword [edx + 0x68]
push ebx
mov ecx, esi
call fcn.004320ac
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x28]
mov dword [esp + 0xc], 0x444db4
lea ecx, [esp + 0xc]
mov dword [esp + 0x68], 1
call fcn.004328e5
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10
Function at 0x404720
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407b00
test esi, esi
jne 0x404758
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.00407c3c
jmp 0x404776
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404604
mov edi, eax
test esi, esi
je 0x404776
cmp dword [ebx], 0
je 0x404776
dec esi
jmp 0x40475f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4068a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x738054], 0
je 0x406901
cmp word [0x738330], 0xd7b2
jne 0x4068c9
cmp dword [0x738338], 0
jbe 0x4068c9
mov eax, 0x73832c
call dword [0x738348]
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
push 0x40692c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x724030], 0
jne 0x40691d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406aac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x724038], 0
je 0x406ad2
mov edx, esi
mov eax, ebx
call dword [0x724038]
jmp 0x406ae1
mov eax, 8
call fcn.00404340
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x738055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406a74
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409de4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409f4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407b00
cmp si, word [0x724800]
jb 0x409e7e
cmp si, word [0x724a00]
ja 0x409e7e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409e7e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x724800]
jae 0x409e58
mov edi, ebx
dec edi
jmp 0x409e79
cmp si, word [ebx*8 + 0x724800]
jbe 0x409e68
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409e79
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x724804]
call fcn.00409cf4
jmp 0x409e7e
cmp edi, dword [ebp - 0xc]
jae 0x409e42
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409f2d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409f2d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407d00
push dword [ebp - 0x164]
push 0x409f68
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407d00
push dword [ebp - 0x168]
push 0x409f78
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407d00
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004080b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f52
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407af8
ret
Function at 0x40a104
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 0x40a209
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x73ab5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x73ab74]
jne 0x40a150
mov eax, esi
mov edx, 0x73ab78
mov ecx, 0x55
call fcn.00407d00
push 0x73ab5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a1f3
push 0x73ab5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407b00
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a1c1
cmp byte [0x73ab58], 0
je 0x40a186
mov edx, esi
mov eax, ebx
call fcn.00409fe4
jmp 0x40a1c1
mov edx, esi
mov eax, ebx
call fcn.00409de4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a1c1
cmp dword [esi], 0
je 0x40a1aa
mov eax, esi
mov edx, 0x40a224
call fcn.00407f14
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409de4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407f14
push 0x73ab5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x73ab74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b8c
push eax
push 0x73ab78
call sub.kernel32.dll_lstrcpynW
push 0x73ab5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a210
lea eax, [ebp - 4]
call fcn.00407af0
ret