joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100429d9
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1fc
push ebp
push esi
push str.LoadSpriteTexture__
call fcn.1004b85f
pop ecx
mov ecx, dword [0x10181254]
xor ebp, ebp
mov esi, ebp
test ecx, ecx
je 0x10042a00
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x10181250]
mov edx, 0x100
push ebp
push 0x10181254
push 1
push 0x15
push ebp
push 1
push edx
mov dword [0x10181254], ebp
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
test eax, eax
jns 0x10042a30
push str.Failed_to_create_sprite_texture_
jmp 0x10042a94
push str.erkanbaba.raw
push 0x1018d578
push str._serkanbaba_s
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.10006c8a
lea eax, [esp + 0x24]
push 0x10077f04
push eax
call fcn.1005beda
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10042a78
lea eax, [esp + 0x10]
push eax
push str.Failed_to_open__s_
call fcn.1004b292
pop ecx
jmp 0x10042a99
mov eax, dword [0x10181254]
lea edx, [esp + 8]
push ebp
push ebp
push edx
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x4c]
test eax, eax
jns 0x10042abd
push str.Failed_to_lock_texture_
call fcn.1004b292
pop ecx
mov ecx, dword [0x10181254]
test ecx, ecx
je 0x10042ab0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x10181254], ebp
test esi, esi
je 0x10042b27
push esi
call fcn.100531a8
pop ecx
jmp 0x10042b27
push ebx
push edi
mov edi, dword [esp + 0x14]
push 0x78
pop ebx
push esi
push 1
lea eax, [esp + 0x124]
push 0xf0
push eax
call fcn.10053a37
add esp, 0x10
lea edx, [edi + 2]
mov cl, byte [esp + ebp + 0x11c]
mov al, cl
shl cl, 5
and al, 0xf8
mov byte [edx + 1], cl
inc ebp
mov byte [edx - 2], al
mov byte [edx - 1], al
mov byte [edx], al
lea edx, [edx + 4]
cmp ebp, 0xf0
jl 0x10042ae1
add edi, dword [esp + 0x10]
push 0
pop ebp
sub ebx, 1
jne 0x10042ac6
mov eax, dword [0x10181254]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
call fcn.100531a8
pop ecx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1fc
ret
Function at 0x1004589c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push str.renderObjectTexts__
call fcn.1004b85f
xor esi, esi
push esi
push 0xffffffffffffffff
call fcn.10029a24
mov ecx, dword [0x10157e8c]
add esp, 0xc
mov ebx, eax
cmp dword [ecx + 0x9986], esi
jne 0x10045a41
test ebx, ebx
je 0x10045a41
mov ecx, dword [0x10179594]
mov ecx, dword [ecx + 0x3de]
cmp dword [ecx + 0x14], esi
je 0x10045a41
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10045905
cmp dword [0x1015ce07], esi
jne 0x10045a41
mov eax, dword [0x101795ac]
cmp dword [eax], esi
jne 0x10045a41
push edi
mov edi, 0x20d4
mov eax, dword [0x10179594]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
cmp dword [edi + eax - 0x20d0], 1
jne 0x10045a30
mov eax, dword [edi + eax]
test eax, eax
je 0x10045a30
mov eax, dword [eax + 0x40]
test eax, eax
je 0x10045a30
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x10]
push ecx
add eax, 0x30
push eax
call fcn.1003ded5
lea eax, [ebp - 0x10]
push eax
call fcn.1003dfcb
add esp, 0xc
test eax, eax
jne 0x10045a30
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1003dee5
fstp dword [ebp - 4]
movss xmm0, dword [ebp - 4]
comiss xmm0, dword [0x10173fd3]
pop ecx
pop ecx
ja 0x10045a30
movss xmm0, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0xc]
push eax
movss dword [ebp - 0x18], xmm0
lea eax, [ebp - 0x1c]
movss xmm0, dword [ebp - 8]
push eax
movss dword [ebp - 0x14], xmm0
call fcn.10041674
movss xmm0, dword [0x10074e84]
comiss xmm0, dword [ebp - 0x20]
pop ecx
pop ecx
ja 0x10045a30
mov eax, dword [0x10179594]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x40]
movzx eax, word [eax + 0x22]
push eax
push esi
push str.Object:__d__ModelID:__d
lea eax, [ebp - 0x48]
push 0x1f
push eax
call fcn.1004154d
movss xmm0, dword [ebp - 0x24]
lea eax, [ebp - 0x48]
subss xmm0, dword [0x1007a750]
add esp, 0x14
push eax
push 0xffc8c800
push ecx
push ecx
mov ecx, dword [0x1018136c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [esp], xmm0
call fcn.10041178
add edi, 4
inc esi
cmp edi, 0x41a4
jl 0x10045918
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10045bc5
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x48
push ebp
push str.renderPickupTexts__
call fcn.1004b85f
mov eax, dword [0x10157e8c]
xor ebp, ebp
pop ecx
cmp dword [eax + 0x9986], ebp
jne 0x10045d6c
mov eax, dword [0x10179594]
mov eax, dword [eax + 0x3de]
cmp dword [eax + 0x10], ebp
je 0x10045d6c
push ebx
push ebp
push 0xffffffffffffffff
call fcn.10029a24
pop ecx
pop ecx
push 9
mov ebx, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10045c21
cmp dword [0x1015ce07], ebp
jne 0x10045d6b
mov eax, dword [0x101795ac]
cmp dword [eax], ebp
jne 0x10045d6b
test ebx, ebx
je 0x10045d6b
push esi
push edi
mov edi, ebp
mov esi, ebp
mov eax, dword [0x10179594]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x10]
cmp dword [eax + esi + 0xf004], ebp
je 0x10045d59
cmp dword [eax + esi + 0xf008], ebp
je 0x10045d59
lea ecx, [esp + 0x14]
add eax, 0xf00c
push ecx
add eax, esi
push eax
call fcn.1003ded5
lea eax, [esp + 0x1c]
push eax
call fcn.1003dfcb
add esp, 0xc
test eax, eax
jne 0x10045d59
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1003dee5
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x10173fcb]
pop ecx
pop ecx
ja 0x10045d59
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x2c]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x18]
push eax
movss dword [esp + 0x28], xmm0
lea eax, [esp + 0x24]
movss xmm0, dword [esp + 0x20]
push eax
movss dword [esp + 0x30], xmm0
call fcn.10041674
movss xmm0, dword [0x10074e84]
comiss xmm0, dword [esp + 0x3c]
pop ecx
pop ecx
ja 0x10045d59
mov eax, dword [0x10179594]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x10]
push dword [eax + esi + 0xf004]
lea eax, [esp + 0x3c]
push edi
push str.Pickup:__d__ModelID:__d
push 0x1f
push eax
call fcn.1004154d
movss xmm0, dword [esp + 0x44]
lea eax, [esp + 0x4c]
subss xmm0, dword [0x1007a750]
add esp, 0x14
push eax
push 0xff00c800
push ecx
push ecx
mov ecx, dword [0x1018136c]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp], xmm0
call fcn.10041178
add esi, 0x14
inc edi
cmp esi, 0x14000
jl 0x10045c3c
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
ret

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

Disassembly:
push str.getFPS__
call fcn.1004b85f
inc dword [0x10181208]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xf0
cmp eax, dword [0x1018139c]
jbe 0x1004787d
mov eax, dword [0x10181208]
movss xmm2, dword [0x101811fc]
movss xmm3, dword [0x10181200]
movss xmm0, dword [0x101811f8]
shl eax, 2
and dword [0x10181208], 0
movss dword [0x10181200], xmm2
addss xmm2, xmm3
movss dword [0x10181204], xmm3
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [0x101811fc], xmm0
movss dword [0x101811f8], xmm1
addss xmm1, xmm0
addss xmm1, xmm2
mulss xmm1, dword [0x1007a6c4]
movss dword [0x101811f4], xmm1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1018139c], eax
fld dword [0x101811f4]
ret
Function at 0x10047884
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.mapMenuTeleport__
call fcn.1004b85f
cmp dword [0x10173fe3], 0
pop ecx
je 0x100478ab
cmp byte [0xba68a5], 5
jne 0x10047954
cmp dword [0xba6774], 0
je 0x10047954
push dword [0x10173fdf]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, 0x10000
je 0x10047954
cmp dword [0x1018d794], 0
je 0x10047954
push esi
push edi
mov esi, 0xba8720
mov edi, 0xaf
mov eax, 0x1203
cmp word [esi + 0x1d], ax
jne 0x1004794a
push 0
call fcn.10029d87
movss xmm0, dword [esi]
pop ecx
mov ecx, dword [0x1018d794]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + 4]
movss dword [ebp - 8], xmm0
mov eax, dword [ecx]
call dword [eax + 0x38]
movss xmm0, dword [ebp - 8]
push ecx
push ecx
mov edx, dword [eax]
mov ecx, eax
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [esp], xmm0
call dword [edx + 0x18]
fadd dword [0x1007a730]
lea eax, [ebp - 0xc]
push 0
push eax
fstp dword [ebp - 4]
call fcn.1002e2bd
pop ecx
pop ecx
add esi, 0x28
sub edi, 1
jne 0x100478e5
pop edi
pop esi
leave
ret
Function at 0x1004b5c2
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push str.init__
call fcn.1004b85f
cmp dword [0x1018d7b4], 0
pop ecx
jne 0x1004b757
push 0xe4
mov edi, 0x1018d578
push edi
push dword [0x1018d570]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
test eax, eax
je 0x1004b61e
push 0x5c
push edi
call fcn.10051550
pop ecx
pop ecx
test eax, eax
je 0x1004b61e
push 0x5c
push edi
call fcn.10051550
pop ecx
pop ecx
mov byte [eax], bl
jmp 0x1004b627
push 0x2e
pop eax
mov word [0x1018d578], ax
push esi
push str.erkanbaba_4.4.2.0____Project_Erkan
push str.Initializing__s
call fcn.1004b292
mov eax, dword [0xc9ac08]
mov dword [0x1018d7a4], eax
pop ecx
pop ecx
mov ecx, dword [0xc9ac0c]
mov dword [0x1018d7a8], ecx
mov edx, dword [0xc9ac10]
mov dword [0x1018d7ac], edx
mov esi, dword [0xc9ac14]
mov dword [0x1018d7b0], esi
push ecx
push edx
push esi
cmp eax, 2
jne 0x1004b676
push str.OS:_Windows_Version__d._d._d
jmp 0x1004b67b
push str.OS:_Not_Windows___d._d._d_
call fcn.1004b292
add esp, 0x10
call fcn.1003d0cd
pop esi
cmp dword [0x10158568], ebx
jne 0x1004b6c3
push ebx
push str.Youre_a_retard.
push str.Looks_like_youve_not_edited_the_.ini_file_like_you_were_told_to__n_nBefore_you_can_use_mod_sa__you_have_to_set__i_have_edited_the_ini_file__to_true._nWe_did_this_so_you_would_read_the_INI_file_to_see_the_configurability_of_mod_sa._n
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push edi
push str.erkanbabaerkanbaba.ini
push str.notepad
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x1004b75a
call fcn.1003ed8c
push 0xfa
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [ebp - 0x104]
push 0x10087190
push eax
call fcn.1002bc9a
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1018d7b4], eax
test eax, eax
jne 0x1004b71e
lea eax, [ebp - 0x104]
push eax
push str.Failed_to_load__s
call fcn.1004b292
pop ecx
pop ecx
jmp 0x1004b6bc
push 0x100871b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10181214], eax
test eax, eax
jne 0x1004b757
lea eax, [ebp - 0x104]
push eax
push str._s_does_not_export_Direct3DCreate9__
call fcn.1004b292
pop ecx
pop ecx
push dword [0x1018d7b4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1004b6bc
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x10061a9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10061910
Function at 0x823908
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x82390e
pop ebp
sub ebp, 6
sub ebp, 0x423908
jmp 0x82396c
aad 0xe
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
jmp 0x823975
mov eax, 0x423908
add eax, ebp
add eax, 0x93
mov ecx, 0x5ca
mov edx, 0x89ce778b
xor byte [eax], dl
inc eax
dec ecx
jne 0x82398c
jmp 0x82399f
add byte [esi], al
add dh, byte [edi + 0xa8b8b8b]
dec edx
jae 0x823936
mov ecx, dword [ebx - 0x72ccb978]
mov ecx, dword [ebx - 0x745cce75]
mov ecx, dword [ebx + 0x4388697c]
add byte [edx], cl
xchg dword [ebx + 0x4e888b8b], ecx
fcmovnu st(0), st(3)
jecxz 0x8239e0
popfd
test dword [ebx - 0x40561d1d], ecx
mov ecx, dword [edx + 0x35e3afa7]
mov dl, byte [eax - 0x49]
arpl word [esi + 0x628b8b8b], cx
mov dword [0xde8b8b8b], eax
invalid
mov ecx, dword [ebx - 0x29202175]
add byte [esi], cl
or dword [ebx + 0x1e008b8b], 0xffffff87
mov ecx, dword [ebx - 0x64f9ff75]
mov ecx, dword [ebx - 0x769db575]
mov edx, 0x8f490889
ret 0xe84
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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x49e8a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae426
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea ecx, [ebp - 0x5d]
call fcn.004017e0
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.0049e5d0
mov dword [ebp - 0x98], eax
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x98]
call fcn.004018f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401fd0
lea ecx, [ebp - 0x94]
call fcn.00401640
movzx edx, byte [0x4e166d]
test edx, edx
jne 0x49e9d3
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 0x58], 0
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x58]
push ecx
push 2
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e99d
cmp dword [ebp - 0x58], 2
jne 0x49e99d
movzx eax, word [ebp - 0x54]
xor ecx, ecx
cmp eax, 0xfeff
sete cl
mov byte [0x4e166d], cl
movzx edx, byte [0x4e166d]
test edx, edx
jne 0x49e9cc
mov eax, 0xfeff
mov word [ebp - 0x5c], ax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [0x4e166d], 1
push 2
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.004017a0
shl eax, 1
push eax
lea ecx, [ebp - 0x48]
call fcn.004018f0
push eax
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x50]
call fcn.00401ff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466e81
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
mov ecx, 0x22de7d89
nop
nop
nop
test eax, eax
nop
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
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x55b27d17
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40342c
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 0x403468
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 0x403488
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004058b8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403730
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.00405638
test esi, esi
jne 0x403766
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.00405728
jmp 0x403784
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403634
mov edi, eax
test esi, esi
je 0x403784
cmp dword [ebx], 0
je 0x403784
dec esi
jmp 0x40376d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4044ec
Capabilities:
Query or enumerate registry value

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

Function at 0x405404
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54404c], 0
je 0x405465
cmp word [0x544220], 0xd7b2
jne 0x40542d
cmp dword [0x544228], 0
jbe 0x40542d
mov eax, 0x54421c
call dword [0x544238]
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 0x40548c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x538030], 0
jne 0x405481
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4055bc
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 [0x538038], 0
je 0x4055e2
mov edx, esi
mov eax, ebx
call dword [0x538038]
jmp 0x4055f1
mov eax, 8
call fcn.004031b4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x54404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405584
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