joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401910
Capabilities:
Copy file

Disassembly:
sub esp, 0x614
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0x610], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call sub.MSVCR90.dll_strrchr
mov esi, eax
inc esi
add esp, 8
cmp esi, 1
jne 0x40196b
push 0
push 0x14
push str..GenerateUpdaterXML.cpp
push str._DWORD_fname___1
call fcn.0056eba0
add esp, 0x10
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.0056f5b0
add esp, 0xc
test al, al
jne 0x40199e
lea edx, [esp + 0x114]
push edx
push str.failed_to_get_crc_for__s_n
call fcn.0056ea60
add esp, 8
push 0x6f8fd8
push esi
lea eax, [esp + 0x18]
push str._s__s.exe
push eax
call fcn.00401aa0
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4019db
lea edx, [esp + 0x10]
push edx
push esi
push str.unable_to_copy__s___s_n
call fcn.0056ea60
add esp, 0xc
push 0x2f
push str.http:__141.11.159.163_wz_q_launcher_woupd.xml
call sub.MSVCR90.dll_strrchr
mov esi, eax
add esp, 8
test esi, esi
jne 0x401a05
push eax
push 0x21
push str..GenerateUpdaterXML.cpp
push str.updater_file
call fcn.0056eba0
add esp, 0x10
lea edi, [esi + 1]
push 0x6778e0
push edi
call fcn.0056fac0
mov esi, eax
push str._p__n
push esi
call sub.MSVCR90.dll_fprintf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push 0x6f8fd8
push ecx
lea edx, [esp + 0x2c]
push edx
push str.http:__141.11.159.163_wz_q_launcher_
push str.__u_url__s_s__crc__u__ver__s__size__u____n
push esi
call sub.MSVCR90.dll_fprintf
push str.__p__n
push esi
call sub.MSVCR90.dll_fprintf
push esi
call sub.MSVCR90.dll_fclose
lea eax, [esp + 0x48]
push eax
push edi
lea ecx, [esp + 0x258]
push str.XML__s_generated_nnew_exe:_s
push ecx
call fcn.00401ac0
add esp, 0x48
push 0
push str.Updater_XML
lea edx, [esp + 0x220]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x618]
pop edi
pop esi
xor ecx, esp
call fcn.005c4d04
add esp, 0x614
ret
Function at 0x4021b0
Capabilities:
Get cpu information
Get memory capacity
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, eax
call fcn.00402280
mov eax, esi
call fcn.004022f0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402210
lea ecx, [esp + 0x10]
push ecx
lea edx, [esi + 0x88]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.MHz
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push 0
shrd edx, eax, 0xa
push 0
push 0
push str.DISPLAY
shr eax, 0xa
mov dword [esi + 0x8c], edx
call dword [sym.imp.GDI32.dll_CreateICA]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x90], eax
call ebx
push edi
mov dword [esi + 0x94], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.00402460
call fcn.00402600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.Software_sKj_Studio_sKj
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a88
mov al, 1
add esp, 0x10
ret
mov eax, dword [esp]
push esi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.UpdaterTime1
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402afa
push esi
call sub.MSVCR90.dll__time64
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add esp, 4
add esi, 0x2a300
adc ecx, 0
cmp edx, ecx
jg 0x402afa
jl 0x402af3
cmp eax, esi
jae 0x402afa
xor al, al
pop esi
add esp, 0x10
ret
mov al, 1
pop esi
add esp, 0x10
ret
Function at 0x402c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0xb14
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0xb10], eax
push 0x104
lea eax, [esp + 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push ecx
lea edx, [esp + 0x10c]
push edx
push 0x104
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp]
test eax, eax
je 0x402c73
mov byte [eax - 1], 0
lea ecx, [esp + 4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10c]
push eax
call sub.MSVCR90.dll__stricmp
add esp, 8
test eax, eax
je 0x402cd5
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x318]
push str.Updater_current_directory___s__is_different_from_working_directory___s_
push eax
call fcn.00406930
add esp, 0x10
push 0x30
push str.Warning
lea ecx, [esp + 0x318]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xb10]
xor ecx, esp
mov al, 1
call fcn.005c4d04
add esp, 0xb14
ret

Function at 0x402d70
Capabilities:
Inspect load icon resource
Terminate process

Disassembly:
mov eax, dword [0x6fde3c]
push 5
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push str._generate
push 0x6fd620
mov dword [0x6fde44], eax
mov dword [0x6a7bf8], 0
call sub.MSVCR90.dll_strstr
add esp, 8
test eax, eax
je 0x402db8
call fcn.00401910
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
call fcn.00402b90
test al, al
jne 0x402da8
call fcn.00402c20
call fcn.00402cf0
test al, al
jne 0x402df3
push 0x40
push str.UAC_problem
push str.Updater_must_be_run_from_administrator
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
call fcn.00407550
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x7a65c8
push 0x677c5c
push 0x17
push 0
push 0x65dbec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402e27
mov dword [0x7a65c8], 0
push str._cmdLine
push 0x6fd620
call sub.MSVCR90.dll_strstr
add esp, 8
test eax, eax
je 0x402e44
mov byte [0x7a65c4], 1
push esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push 0
call esi
push 0x7f89
push 0
mov dword [0x7a4540], eax
call esi
push 0x209
push 0x7a6660
push 0x12f
push 0
mov dword [0x7a453c], eax
call dword [sym.imp.USER32.dll_LoadStringW]
pop esi
ret
Function at 0x403a20
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x5da00e
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov eax, dword [0x6e8794]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
call fcn.005a0b60
cmp byte [0x7a65c4], 0
je 0x403aad
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call sub.MSVCR90.dll___iob_func
add eax, 0x20
push eax
push 0x677d04
push 0x67804c
call sub.MSVCR90.dll_freopen
call sub.MSVCR90.dll___iob_func
push eax
push 0x678054
push str.CONIN_
call sub.MSVCR90.dll_freopen
add esp, 0x18
mov dword [0x6fdec8], 1
jmp 0x403c64
mov eax, 0x7a6d30
call fcn.004021b0
mov eax, dword [0x6fde3c]
push 5
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [0x6fde40]
push eax
push 0
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x6fde40]
push 0x800000
push 0
push edx
call fcn.0056dfe0
mov eax, dword [0x6fde40]
push 0xc00000
push 0
push eax
call fcn.0056dfe0
mov ecx, dword [0x6fde40]
add esp, 0x18
push 0x403890
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.005786b0
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateICA]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 8
push esi
call edi
push 0xa
push esi
mov ebp, eax
call edi
mov esi, eax
lea eax, [ebp - 0x311]
cdq
sub eax, edx
mov ecx, eax
push 0
lea eax, [esi - 0x28a]
cdq
push 0x28a
sub eax, edx
mov edx, dword [0x6fde40]
push 0x311
sar eax, 1
push eax
sar ecx, 1
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x102660
call fcn.005707f0
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x23c], 0
test eax, eax
je 0x403ba0
mov ecx, eax
call fcn.00576050
jmp 0x403ba2
xor eax, eax
mov dword [esp + 0x23c], 0xffffffff
mov ecx, dword [0x6fde40]
push 0
push ecx
mov ecx, eax
mov dword [0x6fdeb4], eax
call fcn.00571960
call fcn.00402e90
lea edx, [esp + 0x14]
push edx
call fcn.005a0970
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x403be3
mov eax, dword [eax + 4]
jmp 0x403be6
add eax, 4
push eax
lea eax, [esp + 0x34]
push 0x677c3c
push eax
call fcn.00406950
add esp, 0xc
cmp dword [esp + 0x2c], esi
jb 0x403c0c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00570810
add esp, 4
mov eax, dword [0x6fde40]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00403270
mov ecx, dword [0x6fde40]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov ecx, dword [0x6fdebc]
call fcn.0057be70
mov ecx, dword [0x6fdeb8]
call fcn.0057c0b0
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005c4d04
add esp, 0x230
ret
Function at 0x405c70
Capabilities:
Set registry value

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Software_sKj_Studio_sKj
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405c9d
xor al, al
pop ecx
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ca2
mov ecx, dword [esp]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push str.LoginToken
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x405c99
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret
Function at 0x405ce0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d9a6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
push edi
mov eax, dword [0x6e8794]
xor eax, esp
push eax
lea eax, [esp + 0xc24]
mov dword fs:[0], eax
push str.Starting_game_n
mov ebx, ecx
call fcn.0056e890
inc dword [0x6fdef0]
add esp, 4
push 6
push 0
mov dword [esp + 0xc34], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.warz_patch.exe
call fcn.0056f5b0
add esp, 0xc
test al, al
jne 0x405d6e
push str.failed1_n
call fcn.0056e890
add esp, 4
jmp 0x405d85
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
push str._08x__d_n
call fcn.0056e890
add esp, 0xc
lea ecx, [ebx + 0x21714]
push ecx
lea edi, [esp + 0x24]
call fcn.0040e500
mov esi, edi
call fcn.00405c70
test al, al
je 0x405dc6
push 0xffffffffffffffff
call fcn.0057c7f0
add esp, 4
push eax
push 0xffffffffffffffff
call fcn.0057c7f0
add esp, 4
push eax
mov edx, edi
push str._08X_08X
push edx
call fcn.00401ac0
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x6fd620
lea ecx, [esp + 0x428]
push str._WOUpdatedOk__s__WOLogin___s_
push ecx
call fcn.00406930
add esp, 0x10
cmp dword [ebx + 0x21dcc], 0
jbe 0x405e36
lea eax, [esp + 0x420]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405df8
sub eax, edx
cmp dword [ebx + 0x21dd0], 0x10
lea edx, [esp + eax + 0x420]
mov dword [esp + 0x14], edx
jb 0x405e1d
mov ebx, dword [ebx + 0x21dbc]
jmp 0x405e23
add ebx, 0x21dbc
push ebx
lea eax, [esp + 0x18]
push str.__survey___s_
push eax
call fcn.0040e640
add esp, 0xc
cmp dword [0x7a7f64], 0
jl 0x405e7a
jg 0x405e4a
cmp dword [0x7a7f60], 0
jbe 0x405e7a
lea eax, [esp + 0x420]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e54
sub eax, edx
lea edx, [esp + 0x14]
lea ecx, [esp + eax + 0x420]
push str.__steam
push edx
mov dword [esp + 0x1c], ecx
call fcn.0040e640
add esp, 8
push 5
push 0
lea eax, [esp + 0x428]
push eax
push str.warz_patch.exe
call fcn.005a1330
add esp, 4
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x405eb4
push eax
push str.failed:__d_n
call fcn.0056e890
add esp, 8
cmp dword [0x6fdef0], 0
je 0x405ec3
dec dword [0x6fdef0]
mov ecx, dword [esp + 0xc24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.005c4d04
add esp, 0xc20
ret
Function at 0x406f90
Capabilities:
Set console window title

Disassembly:
sub esp, 0x218
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040bb70
call fcn.0056e5d0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
call fcn.0056e620
call fcn.0056e5d0
push 0x64
call edi
cmp dword [esi + 0x20dec], 3
jne 0x406fe1
mov dword [esi + 0x20dec], 5
cmp dword [esi + 0x20df0], 0
jne 0x407068
mov eax, dword [esi + 0x215f8]
mov ecx, dword [esi + 0x215fc]
mov dword [esp + 0x10], eax
or eax, ecx
mov dword [esp + 0x14], ecx
jne 0x407006
fldz
jmp 0x40702f
fild qword [esi + 0x21600]
fild qword [esp + 0x10]
fdivp st(1)
fstp dword [esp + 0xc]
fld1
fcom dword [esp + 0xc]
fnstsw ax
test ah, 5
jp 0x407029
fstp dword [esp + 0xc]
jmp 0x40702b
fstp st(0)
fld dword [esp + 0xc]
fstp dword [esp + 0xc]
sub esp, 8
fld dword [esp + 0x14]
lea eax, [esi + 0x20df5]
fmul qword [0x67a2a8]
lea ecx, [esp + 0x20]
fstp qword [esp]
push eax
push str._s:__.1f__
push ecx
call fcn.00406950
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call ebx
jmp 0x406fc0
mov eax, esi
call fcn.0040bca0
mov eax, dword [esi + 0x20df0]
sub eax, 1
je 0x4070b2
sub eax, 1
je 0x40709c
sub eax, 1
je 0x4070bf
push 0
push 0x37
push str..Main_CmdLine.cpp
push 0x678044
call fcn.0056eba0
add esp, 0x10
jmp 0x4070bf
add esi, 0x211f5
push esi
push str.Update_error_n_s_n_nPlease_retry_later
call fcn.0056e890
add esp, 8
jmp 0x4070bf
push str.Update_ok_n
call fcn.0056e890
add esp, 4
push str._nPress_enter_to_exit...
call fcn.0056e890
add esp, 4
call sub.MSVCR90.dll_getchar
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c4d04
add esp, 0x218
ret
Function at 0x407550
Capabilities:
Copy file
Create process on windows
Delete file
Move file
Terminate process

Disassembly:
sub esp, 0x60c
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0x608], eax
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push str..new.exe
push ecx
call sub.MSVCR90.dll_strstr
add esp, 8
test eax, eax
jne 0x4075c9
lea edx, [esp]
push edx
lea eax, [esp + 0x108]
push str._s.new.exe
push eax
call fcn.00401aa0
add esp, 0xc
lea ecx, [esp + 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x608]
xor ecx, esp
call fcn.005c4d04
add esp, 0x60c
ret
push str..exe_updated__moving_back_n
mov byte [0x7a6a72], 1
call fcn.0056e890
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax]
mov byte [esp + eax + 0x104], cl
inc eax
test cl, cl
jne 0x4075f0
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407605
sub eax, edx
cmp eax, 8
ja 0x407629
push 0
push 0x31
push str..SelfUpdateEXE.cpp
push str.strlen_exeMain____8
call fcn.0056eba0
add esp, 0x10
lea eax, [esp]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407630
push ebx
push ebp
push esi
sub eax, edx
push edi
lea edx, [esp + 0x10]
push edx
push str.exeMain:__s_n
mov byte [esp + eax + 0x10], cl
call fcn.0056e890
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
xor esi, esi
lea eax, [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
call ebx
test eax, eax
jne 0x40770b
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x11c]
push ecx
call ebp
test eax, eax
jne 0x40770b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x407667
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x220]
push str.Failed_to_replace_updater_file_n_nPlease_manually_rename__s_to__s
push ecx
call fcn.00401ac0
add esp, 0x10
push 0x30
push str.Updater
lea edx, [esp + 0x220]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push 0
push 0
push 0x677de0
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor al, al
jmp 0x40770d
mov al, 1
mov ecx, dword [esp + 0x618]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c4d04
add esp, 0x60c
ret
Function at 0x407730
Capabilities:
Create process on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x104
lea eax, [esp + 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.Trying_to_update_n
call fcn.0056e890
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push str._s.new.exe
push edx
call fcn.00401aa0
lea eax, [esp + 0x14]
push 0x677d04
push eax
call sub.MSVCR90.dll_fopen
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4077a5
lea ecx, [esp + 4]
push ecx
push str.cant_open__s_for_writing_n
call fcn.0056ea60
add esp, 8
mov edx, dword [esp + 0x214]
push esi
push 1
push edx
push edi
call sub.MSVCR90.dll_fwrite
push esi
call sub.MSVCR90.dll_fclose
mov eax, dword [0x7a65cc]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
push ecx
push str.executing__s_n
call fcn.0056e890
add esp, 8
push 5
push 0
push 0x6fd620
lea edx, [esp + 0x10]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop esi
jge 0x407811
push eax
lea eax, [esp + 4]
push eax
push str.failed_to_launch__s___d
call fcn.0056ea60
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov al, 1
call fcn.005c4d04
add esp, 0x20c
ret
Function at 0x407cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5d9a18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push edi
mov eax, dword [0x6e8794]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
fldz
lea ecx, [esp + 0x14]
fst dword [esi]
mov dword [esi + 8], 0
fstp dword [esi + 4]
call fcn.00413760
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0
call fcn.004138f0
movzx eax, word [esp + 0x5c]
push 0x678508
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x407dfd
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x407dfd
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00413ab0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00413920
push eax
lea ecx, [esp + 0x1c]
call fcn.00413950
mov ecx, dword [0x6fdeb4]
push eax
add ecx, 0x50
call fcn.00571400
push eax
call sub.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory
test eax, eax
jne 0x407dfd
mov ecx, dword [0x6fdeb4]
call fcn.00580cb0
push 1
push 1
push 0x16
push 4
push 4
mov ecx, eax
mov dword [esi + 8], eax
call fcn.005828a0
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 8]
push edx
call fcn.005826d0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0
push eax
mov eax, dword [ecx + 0x44]
call eax
fild dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
fild dword [esp + 0x40]
test ecx, ecx
jge 0x407dde
fadd dword [0x67a1c8]
fdivp st(1)
mov edx, dword [esp + 0x44]
fstp dword [esi]
fild dword [esp + 0x64]
fild dword [esp + 0x44]
test edx, edx
jge 0x407df8
fadd dword [0x67a1c8]
fdivp st(1)
fstp dword [esi + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0xffffffff
call fcn.00413810
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x4c
ret 0xc
Function at 0x4094d0
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x6e8794]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
lea eax, [esp + 0x14]
mov ebx, ecx
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.0056f5b0
add esp, 0xc
test al, al
je 0x40950f
mov edx, dword [esp + 0x10]
cmp edx, dword [esi + 0x10e]
je 0x4095f5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x677d04
push esi
call sub.MSVCR90.dll_fopen
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x409550
push esi
lea eax, [esp + 0x1c]
push str.Cant_replace_file__s_nPlease_delete_this_file_manually
push eax
call fcn.00401ac0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov eax, edi
call fcn.00408910
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00413920
push eax
mov ecx, ebx
call fcn.00413950
push eax
push esi
lea ecx, [edi + 0x4e0]
call fcn.0057ce70
mov ecx, dword [esi + 0x106]
cmp ecx, dword [esp + 8]
je 0x40959b
push 0
push 0x19b
push str..Updater.cpp
push str.fe__size__out_size
call fcn.0056eba0
add esp, 0x10
lea ebx, [edi + 0x20dd4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ebp
push 1
push edx
push eax
call sub.MSVCR90.dll_fwrite
push ebp
call sub.MSVCR90.dll_fclose
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.warz_patch.exe
push esi
call sub.MSVCR90.dll__stricmp
add esp, 8
test eax, eax
jne 0x4095e8
mov byte [edi + 0x21708], 1
call fcn.00409860
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00570810
add esp, 4
mov ecx, dword [esp + 0x41c]
pop ebp
pop ebx
xor ecx, esp
call fcn.005c4d04
add esp, 0x41c
ret