joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10046a5d
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x48
push ebp
push str.renderPickupTexts__
call fcn.1005070a
mov eax, dword [0x1015448c]
xor ebp, ebp
pop ecx
cmp dword [eax + 0x5e8c0], ebp
jne 0x10046c04
mov eax, dword [0x101d5644]
mov eax, dword [eax + 0x3de]
cmp dword [eax + 0x10], ebp
je 0x10046c04
push ebx
push ebp
push 0xffffffffffffffff
call fcn.1002a80b
pop ecx
pop ecx
push 9
mov ebx, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10046ab9
cmp dword [0x101b8eaf], ebp
jne 0x10046c03
mov eax, dword [0x101d565c]
cmp dword [eax], ebp
jne 0x10046c03
test ebx, ebx
je 0x10046c03
push esi
push edi
mov edi, ebp
mov esi, ebp
mov eax, dword [0x101d5644]
mov eax, dword [eax + 0x3de]
mov eax, dword [eax + 0x10]
cmp dword [eax + esi + 0xf004], ebp
je 0x10046bf1
cmp dword [eax + esi + 0xf008], ebp
je 0x10046bf1
lea ecx, [esp + 0x14]
add eax, 0xf00c
push ecx
add eax, esi
push eax
call fcn.1003fcdf
lea eax, [esp + 0x1c]
push eax
call fcn.1003fdd5
add esp, 0xc
test eax, eax
jne 0x10046bf1
mov eax, dword [ebx + 0x14]
add eax, 0x30
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1003fcef
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x101d0073]
pop ecx
pop ecx
ja 0x10046bf1
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.100437a2
movss xmm0, dword [0x1007c140]
comiss xmm0, dword [esp + 0x3c]
pop ecx
pop ecx
ja 0x10046bf1
mov eax, dword [0x101d5644]
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.100435e3
movss xmm0, dword [esp + 0x44]
lea eax, [esp + 0x4c]
subss xmm0, dword [0x100819d8]
add esp, 0x14
push eax
push 0xff00c800
push ecx
push ecx
mov ecx, dword [0x101dd3e4]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp], xmm0
call fcn.10043103
add esi, 0x14
inc edi
cmp esi, 0x14000
jl 0x10046ad4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x48
ret
Function at 0x1004b880
Capabilities:
Check for time delay via gettickcount

Disassembly:
push str.getFPS__
call fcn.1005070a
inc dword [0x101dd37c]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xf0
cmp eax, dword [0x101dd3f4]
jbe 0x1004b919
mov eax, dword [0x101dd37c]
movss xmm2, dword [0x101dd370]
movss xmm3, dword [0x101dd374]
movss xmm0, dword [0x101dd36c]
shl eax, 2
and dword [0x101dd37c], 0
movss dword [0x101dd374], xmm2
addss xmm2, xmm3
movss dword [0x101dd378], xmm3
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [0x101dd370], xmm0
movss dword [0x101dd36c], xmm1
addss xmm1, xmm0
addss xmm1, xmm2
mulss xmm1, dword [0x10081950]
movss dword [0x101dd368], xmm1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101dd3f4], eax
fld dword [0x101dd368]
ret

Function at 0x1004b963
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.mapMenuTeleport__
call fcn.1005070a
cmp dword [0x101d008b], 0
pop ecx
je 0x1004b98a
cmp byte [0xba68a5], 5
jne 0x1004ba33
cmp dword [0xba6774], 0
je 0x1004ba33
push dword [0x101d0087]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, 0x10000
je 0x1004ba33
cmp dword [0x101ea7bc], 0
je 0x1004ba33
push esi
push edi
mov esi, 0xba8720
mov edi, 0xaf
mov eax, 0x1203
cmp word [esi + 0x1d], ax
jne 0x1004ba29
push 0
call fcn.1002ab6e
movss xmm0, dword [esi]
pop ecx
mov ecx, dword [0x101ea7bc]
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 [0x100819b8]
lea eax, [ebp - 0xc]
push 0
push eax
fstp dword [ebp - 4]
call fcn.1002f088
pop ecx
pop ecx
add esi, 0x28
sub edi, 1
jne 0x1004b9c4
pop edi
pop esi
leave
ret
Function at 0x1005046d
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.1005070a
cmp dword [0x101ea588], 0
pop ecx
jne 0x10050602
push 0xe4
mov edi, 0x101ea5a0
push edi
push dword [0x101ea598]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
test eax, eax
je 0x100504c9
push 0x5c
push edi
call fcn.10056790
pop ecx
pop ecx
test eax, eax
je 0x100504c9
push 0x5c
push edi
call fcn.10056790
pop ecx
pop ecx
mov byte [eax], bl
jmp 0x100504d2
push 0x2e
pop eax
mov word [0x101ea5a0], ax
push esi
push str.mod_sa_4.4.2.0____blast.hk
push str.Initializing__s
call fcn.1005013d
mov eax, dword [0xc9ac08]
mov dword [0x101ea7cc], eax
pop ecx
pop ecx
mov ecx, dword [0xc9ac0c]
mov dword [0x101ea7d0], ecx
mov edx, dword [0xc9ac10]
mov dword [0x101ea7d4], edx
mov esi, dword [0xc9ac14]
mov dword [0x101ea7d8], esi
push ecx
push edx
push esi
cmp eax, 2
jne 0x10050521
push str.OS:_Windows_Version__d._d._d
jmp 0x10050526
push str.OS:_Not_Windows___d._d._d_
call fcn.1005013d
add esp, 0x10
call fcn.1003eed7
pop esi
cmp dword [0x101b4620], ebx
jne 0x1005056e
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.mod_samod_sa.ini
push str.notepad
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x10050605
call fcn.10040d91
push 0xfa
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea eax, [ebp - 0x104]
push 0x1008ea2c
push eax
call fcn.1002ca81
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x101ea588], eax
test eax, eax
jne 0x100505c9
lea eax, [ebp - 0x104]
push eax
push str.Failed_to_load__s
call fcn.1005013d
pop ecx
pop ecx
jmp 0x10050567
push 0x1008ea4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101dd388], eax
test eax, eax
jne 0x10050602
lea eax, [ebp - 0x104]
push eax
push str._s_does_not_export_Direct3DCreate9__
call fcn.1005013d
pop ecx
pop ecx
push dword [0x101ea588]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10050567
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x1006745b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100672d1
Function at 0x4031c8
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 0x403204
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 0x403224
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405d08
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40352c
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.00405a98
test esi, esi
jne 0x403562
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.00405b88
jmp 0x403580
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033d0
mov edi, eax
test esi, esi
je 0x403580
cmp dword [ebx], 0
je 0x403580
dec esi
jmp 0x403569
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404930
Capabilities:
Query or enumerate registry value

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

Function at 0x405864
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d604c], 0
je 0x4058c5
cmp word [0x5d6220], 0xd7b2
jne 0x40588d
cmp dword [0x5d6228], 0
jbe 0x40588d
mov eax, 0x5d621c
call dword [0x5d6238]
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 0x4058ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5cc034], 0
jne 0x4058e1
push 0
push 0x5cc78c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a1c
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 [0x5cc03c], 0
je 0x405a42
mov edx, esi
mov eax, ebx
call dword [0x5cc03c]
jmp 0x405a51
mov eax, 8
call fcn.00402fc0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5d604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4059e4
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 0x4078a8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407ad8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40792b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407ad8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40792b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407af4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4079b4
xor eax, eax
push ebp
push 0x4079ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004076e4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407992
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407b14
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407992
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4079b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x407ace
cmp byte [ebp - 0xd], 0
jne 0x4079fb
cmp byte [ebp - 0x12], 0
je 0x407ace
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407a14
dec ebx
cmp byte [ebx], 0x2e
je 0x407a23
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407a13
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x407ace
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407a60
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x407ace
cmp byte [ebp - 0xd], 0
je 0x407ace
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x407ace
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40aa42
test eax, edx
je 0x40aa45
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40aa05
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40aa2b
add ecx, 4
js 0x40aa1b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40aa28
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40aa51
test edx, edx
jne 0x40a9f8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405f28
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b909
test al, 0x10
je 0x40b90d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405f28
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b92d
test al, 0x10
jne 0x40b931
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ec14
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 0x40ec4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405b88
jmp 0x40ec56
mov eax, ebx
mov edx, esi
call fcn.00405aec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ec60
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 0x40ec82
movzx eax, byte [esp]
jmp 0x40ec84
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f460
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f2d8
mov eax, dword [0x5d4e78]
cmp byte [eax], 0
je 0x40f4dc
mov eax, dword [0x5d4990]
call fcn.00403a54
call fcn.0040311c
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.0040be88
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 0x40f524
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f512
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5d48d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5d87f8]
call fcn.0040768c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40fe00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fed6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405b30
lea eax, [ebp - 4]
call fcn.00405f80
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40fec0
mov eax, ebx
call fcn.00402fc0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40feb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40fea3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40fee8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40fea3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fec0
mov eax, dword [ebp - 0x10]
call fcn.00402fdc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fedd
lea eax, [ebp - 4]
call fcn.00405a98
ret

Function at 0x42a85c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042a598
dec esi
jne 0x42a87e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42b9f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5daa04
cmp dword [edi], 0
jne 0x42ba6c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5daa00]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5ccd98
mov ecx, 2
call fcn.004032d0
mov edx, 0x42b9c8
lea eax, [esi + 5]
call fcn.0042b9e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042b9e8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42ba41
mov dword [0x5daa00], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42dd6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
xor eax, eax
push ebp
push 0x42ddc2
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_SetFileApisToANSI
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42dda6
test al, 0x10
jne 0x42ddaa
xor ebx, ebx
jmp 0x42ddac
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ddc9
lea eax, [ebp - 4]
call fcn.00405a98
ret

Function at 0x42de1c
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
xor edx, edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
xor eax, eax
push ebp
push 0x42df41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x8c]
sub eax, 2
jne 0x42de88
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x42df16
mov eax, 0x400
call fcn.00402fc0
mov ebx, eax
push 0x400
push ebx
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
call sub.kernel32.dll_GetShortPathNameA
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405c90
push 0x400
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0xa4]
mov edx, ebx
call fcn.00405c90
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0042dc08
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 8]
mov ecx, 0x42df58
call fcn.00405db0
mov eax, dword [ebp - 8]
call fcn.00405f28
push eax
mov eax, dword [ebp - 4]
call fcn.00405f28
push eax
push 0x42df64
push 0x42df68
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, ebx
call fcn.00402fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42df48
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.00405abc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405abc
ret
Function at 0x42df70
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
xor ecx, ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
lea eax, [ebp - 0x168]
mov edx, dword [0x409a4c]
call fcn.00406794
xor eax, eax
push ebp
push 0x42e1ac
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.0042dce0
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 4]
call fcn.00405b30
lea eax, [ebp - 0x178]
mov ecx, 0x42e1c0
mov edx, dword [ebp - 4]
call fcn.00405db0
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.0040bab4
cdq
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
jmp 0x42e154
test byte [ebp - 0x158], 0x10
je 0x42e0b5
mov eax, dword [ebp - 0x154]
mov edx, 0x42e1d0
call fcn.00405ec0
je 0x42e0b5
mov eax, dword [ebp - 0x154]
mov edx, 0x42e1dc
call fcn.00405ec0
je 0x42e0b5
test bl, bl
je 0x42e13c
push dword [ebp - 4]
push 0x42e1e8
push dword [ebp - 0x154]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00405e2c
mov eax, dword [ebp - 0x17c]
mov dl, 1
call fcn.0042df70
push dword [ebp - 4]
push 0x42e1e8
push dword [ebp - 0x154]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00405e2c
mov eax, dword [ebp - 0x180]
call fcn.0040be70
jmp 0x42e13c
mov eax, dword [ebp - 0x154]
mov edx, 0x42e1d0
call fcn.00405ec0
je 0x42e13c
mov eax, dword [ebp - 0x154]
mov edx, 0x42e1dc
call fcn.00405ec0
je 0x42e13c
push 0x80
push dword [ebp - 4]
push 0x42e1e8
push dword [ebp - 0x154]
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00405e2c
mov eax, dword [ebp - 0x184]
call fcn.00405f28
push eax
call sub.kernel32.dll_SetFileAttributesA
push dword [ebp - 4]
push 0x42e1e8
push dword [ebp - 0x154]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.00405e2c
mov eax, dword [ebp - 0x188]
call fcn.00405f28
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x168]
call fcn.0040bb04
cdq
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
jne 0x42e164
cmp dword [ebp - 0x170], 0
je 0x42e023
lea eax, [ebp - 0x168]
call fcn.0040bb28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e1b3
lea eax, [ebp - 0x188]
mov edx, 6
call fcn.00405abc
lea eax, [ebp - 0x168]
mov edx, dword [0x409a4c]
call fcn.00406864
lea eax, [ebp - 4]
call fcn.00405a98
ret