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

Disassembly:
sub esp, 0x614
mov eax, dword [0x6926e4]
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 fcn.0057bfe0
mov esi, eax
inc esi
add esp, 8
cmp esi, 1
jne 0x401cbb
push 0
push 0x16
push str..GenerateUpdaterXML.cpp
push str._DWORD_fname___1
call fcn.0055a490
add esp, 0x10
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.0055ae20
add esp, 0xc
test al, al
jne 0x401cee
lea edx, [esp + 0x114]
push edx
push str.failed_to_get_crc_for__s_n
call fcn.0055a350
add esp, 8
push str.0.9.3
push esi
lea eax, [esp + 0x18]
push str._s__s.exe
push eax
call fcn.00401e10
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401d2b
lea edx, [esp + 0x10]
push edx
push esi
push str.unable_to_copy__s___s_n
call fcn.0055a350
add esp, 0xc
cmp dword [0x73bf8c], 0x10
mov eax, dword [0x73bf78]
jae 0x401d3e
mov eax, 0x73bf78
push 0x2f
push eax
call fcn.0057bfe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401d64
push eax
push 0x23
push str..GenerateUpdaterXML.cpp
push str.updater_file
call fcn.0055a490
add esp, 0x10
lea edi, [esi + 1]
push 0x666274
push edi
call fcn.0055b330
mov esi, eax
push str._p__n
push esi
call fcn.0057c00d
mov eax, dword [0x73bf94]
add esp, 0x10
cmp dword [0x73bfa8], 0x10
jae 0x401d95
mov eax, 0x73bf94
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ecx
push str.0.9.3
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push str.__u_url__s_s__crc__u__ver__s__size__u____n
push esi
call fcn.0057c00d
push str.__p__n
push esi
call fcn.0057c00d
push esi
call fcn.0057c1a0
lea edx, [esp + 0x38]
push edx
push edi
push str.XML__s_generated_nnew_exe:_s
lea edx, [esp + 0x24c]
call fcn.00401e30
add esp, 0x34
push 0
push str.Updater_XML
lea eax, [esp + 0x220]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x618]
pop edi
pop esi
xor ecx, esp
call fcn.0057bd22
add esp, 0x614
ret
Function at 0x403d90
Capabilities:
Get common file path

Disassembly:
sub esp, 0xb14
mov eax, dword [0x6926e4]
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 0x403de3
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 fcn.0057e05d
add esp, 8
test eax, eax
je 0x403e45
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.004078d0
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.0057bd22
add esp, 0xb14
ret

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

Disassembly:
mov eax, dword [0x698a08]
push 5
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push str._generate
push 0x6985e0
mov dword [0x698a10], eax
mov dword [0x691540], 0
call fcn.0057cc70
add esp, 8
test eax, eax
je 0x403f28
call fcn.00401c60
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
call fcn.00403d00
test al, al
jne 0x403f18
call fcn.00403d90
call fcn.00403e60
test al, al
jne 0x403f63
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.00408080
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x73b490
push 0x666bb8
push 0x17
push 0
push 0x645a54
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x403f97
mov dword [0x73b490], 0
push str._cmdLine
push 0x6985e0
call fcn.0057cc70
add esp, 8
test eax, eax
je 0x403fb4
mov byte [0x73b48c], 1
push esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push 0
call esi
push 0x7f89
push 0
mov dword [0x73b3f0], eax
call esi
push 0x209
push 0x73b528
push 0x12f
push 0
mov dword [0x73b3ec], eax
call dword [sym.imp.USER32.dll_LoadStringW]
pop esi
ret
Function at 0x404b00
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x5ca5ce
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x6926e4]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push esi
push edi
mov eax, dword [0x6926e4]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
cmp byte [0x73b48c], 0
je 0x404b88
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call fcn.0057d2cc
add eax, 0x20
push eax
push 0x666c64
push 0x666f04
call fcn.0057d2a6
call fcn.0057d2cc
push eax
push 0x666f0c
push str.CONIN_
call fcn.0057d2a6
add esp, 0x18
mov dword [0x698a80], 1
jmp 0x404cf8
mov eax, dword [0x698a08]
push 5
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [0x698a0c]
push eax
push 0
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x698a0c]
push 0x800000
push 0
push edx
call fcn.00559990
mov eax, dword [0x698a0c]
push 0xc00000
push 0
push eax
call fcn.00559990
mov ecx, dword [0x698a0c]
add esp, 0x18
push 0x404970
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.005637b0
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 ebx, eax
call edi
mov esi, eax
lea eax, [ebx - 0x311]
cdq
sub eax, edx
mov ecx, eax
push 0
lea eax, [esi - 0x28a]
cdq
push 0x28a
sub eax, edx
mov edx, dword [0x698a0c]
push 0x311
sar eax, 1
push eax
sar ecx, 1
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xac640
call fcn.0057c795
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x220], 0
test eax, eax
je 0x404c71
mov ecx, eax
call fcn.005611b0
jmp 0x404c73
xor eax, eax
mov dword [esp + 0x220], 0xffffffff
mov ecx, dword [0x698a0c]
push 0
push ecx
mov ecx, eax
mov dword [0x698a6c], eax
call fcn.0055cf80
call fcn.00403ff0
push str.Oct_23_2024_01:16:42
push str.0.9.3
lea edx, [esp + 0x1c]
push str.WOUpdater__s___s_
push edx
call fcn.004078f0
mov ecx, dword [0x698a0c]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00404390
mov edx, dword [0x698a0c]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov ecx, dword [0x698a74]
call fcn.00566640
mov ecx, dword [0x698a70]
call fcn.00566880
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0057bd22
add esp, 0x214
ret
Function at 0x4065ba
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60c
mov eax, dword [0x6926e4]
xor eax, esp
mov dword [esp + 0x608], eax
mov eax, dword [esp + 0x610]
push edi
add eax, 0x21660
push eax
lea edi, [esp + 0xc]
call fcn.0040e110
cmp esi, 5
ja case.default.0x406524
jmp dword [esi*4 + 0x4065fc]
cmp dword [0x73bdcc], 0x10
mov eax, dword [0x73bdb8]
jae 0x40653e
mov eax, 0x73bdb8
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x210]
call fcn.00401e30
add esp, 8
push 5
push 0
push 0x666b49
lea edx, [esp + 0x214]
push edx
jmp 0x4065d7
cmp dword [0x73bde8], 0x10
mov eax, dword [0x73bdd4]
jae 0x4065cd
mov eax, 0x73bdd4
jmp 0x4065cd
cmp dword [0x73be04], 0x10
mov eax, dword [0x73bdf0]
jae 0x4065cd
mov eax, 0x73bdf0
jmp 0x4065cd
cmp dword [0x73be20], 0x10
mov eax, dword [0x73be0c]
jae 0x4065cd
mov eax, 0x73be0c
jmp 0x4065cd
cmp dword [0x73be3c], 0x10
mov eax, dword [0x73be28]
jae 0x4065cd
mov eax, 0x73be28
jmp 0x4065cd
cmp dword [0x73be58], 0x10
mov eax, dword [0x73be44]
jae 0x4065cd
mov eax, 0x73be44
push 5
push 0
push 0x666b49
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x60c]
pop edi
xor ecx, esp
call fcn.0057bd22
add esp, 0x60c
ret
Function at 0x406d70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ca7bb
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x6926e4]
xor eax, esp
mov dword [esp + 0xc10], eax
push esi
push edi
mov eax, dword [0x6926e4]
xor eax, esp
push eax
lea eax, [esp + 0xc20]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x20dd0], 0
je 0x406dd2
xor eax, eax
call fcn.00401310
cmp eax, 1
jne 0x406eff
call fcn.00401310
cmp eax, 1
jne 0x406eff
push str.Starting_game_n
call fcn.0055a180
inc dword [0x698a98]
add esp, 4
push 6
push 0
mov dword [esp + 0xc30], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.WarZ.exe
call fcn.0055ae20
add esp, 0xc
test al, al
jne 0x406e24
push str.failed1_n
call fcn.0055a180
add esp, 4
jmp 0x406e3b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
push str._08x__d_n
call fcn.0055a180
add esp, 0xc
lea ecx, [esi + 0x21660]
push ecx
lea edi, [esp + 0x20]
call fcn.0040e110
mov edx, edi
push edx
push 0x6985e0
lea eax, [esp + 0x424]
push str._WOUpdatedOk__s__WOLogin___s_
push eax
call fcn.004078d0
add esp, 0x10
cmp dword [esi + 0x21c80], 0
jbe 0x406ebe
lea eax, [esp + 0x41c]
lea edx, [eax + 1]
jmp 0x406e80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406e80
sub eax, edx
cmp dword [esi + 0x21c84], 0x10
lea ecx, [esp + eax + 0x41c]
mov dword [esp + 0x10], ecx
jb 0x406ea5
mov esi, dword [esi + 0x21c70]
jmp 0x406eab
add esi, 0x21c70
push esi
lea edx, [esp + 0x14]
push str.__survey___s_
push edx
call fcn.004079b0
add esp, 0xc
call fcn.00407ff0
push 5
push 0
lea ecx, [esp + 0x424]
push ecx
push str.WarZ.exe
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x406ef0
push eax
push str.failed:__d_n
call fcn.0055a180
add esp, 8
cmp dword [0x698a98], 0
je 0x406eff
dec dword [0x698a98]
mov ecx, dword [esp + 0xc20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc10]
xor ecx, esp
call fcn.0057bd22
add esp, 0xc20
ret
Function at 0x407a40
Capabilities:
Set console window title

Disassembly:
sub esp, 0x218
mov eax, dword [0x6926e4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040bdd0
call fcn.00559ec0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
call fcn.00559f20
call fcn.00559ec0
push 0x64
call edi
cmp dword [esi + 0x20dec], 3
jne 0x407a91
mov dword [esi + 0x20dec], 5
cmp dword [esi + 0x20df0], 0
jne 0x407b18
mov eax, dword [esi + 0x215f8]
mov ecx, dword [esi + 0x215fc]
mov dword [esp + 0x10], eax
or eax, ecx
mov dword [esp + 0x14], ecx
jne 0x407ab6
fldz
jmp 0x407adf
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 0x407ad9
fstp dword [esp + 0xc]
jmp 0x407adb
fstp st(0)
fld dword [esp + 0xc]
fstp dword [esp + 0xc]
sub esp, 8
fld dword [esp + 0x14]
lea eax, [esi + 0x20df5]
fmul qword [0x668428]
lea ecx, [esp + 0x20]
fstp qword [esp]
push eax
push str._s:__.1f__
push ecx
call fcn.004078f0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call ebx
jmp 0x407a70
mov eax, esi
call fcn.0040bf00
mov eax, dword [esi + 0x20df0]
sub eax, 1
je 0x407b62
sub eax, 1
je 0x407b4c
sub eax, 1
je 0x407b6f
push 0
push 0x37
push str..Main_CmdLine.cpp
push 0x666f00
call fcn.0055a490
add esp, 0x10
jmp 0x407b6f
add esi, 0x211f5
push esi
push str.Update_error_n_s_n_nPlease_retry_later
call fcn.0055a180
add esp, 8
jmp 0x407b6f
push str.Update_ok_n
call fcn.0055a180
add esp, 4
push str._nPress_enter_to_exit...
call fcn.0055a180
add esp, 4
call fcn.0057d48e
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057bd22
add esp, 0x218
ret

Function at 0x407ff0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x6926e4]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push 0x90
lea eax, [esp + 0xc]
push 0
push eax
mov esi, str.open
call fcn.0057e0b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push str.OS_Version:__d__d__s_n
call fcn.0055a180
add esp, 0x10
cmp dword [esp + 8], 6
mov eax, str.runas
jae 0x40805b
mov eax, esi
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
call fcn.0057bd22
add esp, 0x98
ret
Function at 0x408080
Capabilities:
Copy file
Create process on windows
Delete file
Move file
Terminate process

Disassembly:
sub esp, 0x60c
mov eax, dword [0x6926e4]
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 fcn.0057cc70
add esp, 8
test eax, eax
jne 0x4080f9
lea edx, [esp]
push edx
lea eax, [esp + 0x108]
push str._s.new.exe
push eax
call fcn.00401e10
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.0057bd22
add esp, 0x60c
ret
push str..exe_updated__moving_back_n
mov byte [0x73b48f], 1
call fcn.0055a180
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp]
push edx
lea eax, [esp + 0x108]
push 0x104
push eax
call fcn.0057c4bf
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408138
sub eax, edx
cmp eax, 8
ja 0x40815c
push 0
push 0x31
push str..SelfUpdateEXE.cpp
push str.strlen_exeMain____8
call fcn.0055a490
add esp, 0x10
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408162
push ebx
push ebp
push esi
sub eax, edx
mov byte [esp + eax + 4], cl
push edi
lea ecx, [esp + 0x10]
push ecx
push str.exeMain:__s_n
call fcn.0055a180
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 esp, [esp]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
call ebx
test eax, eax
jne 0x408243
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push eax
call ebp
test eax, eax
jne 0x408243
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x4081a0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push str.Failed_to_replace_updater_file_n_nPlease_manually_rename__s_to__s
lea edx, [esp + 0x224]
call fcn.00401e30
add esp, 0xc
push 0x30
push str.Updater
lea eax, [esp + 0x220]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push 0
push 0
push 0x666d54
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 0x408245
mov al, 1
mov ecx, dword [esp + 0x618]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0057bd22
add esp, 0x60c
ret
Function at 0x408260
Capabilities:
Create process on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6926e4]
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.0055a180
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push str._s.new.exe
push edx
call fcn.00401e10
lea eax, [esp + 0x14]
push 0x666c64
push eax
call fcn.0057cc13
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4082d5
lea ecx, [esp + 4]
push ecx
push str.cant_open__s_for_writing_n
call fcn.0055a350
add esp, 8
mov edx, dword [esp + 0x214]
push esi
push 1
push edx
push edi
call fcn.0057d5f5
push esi
call fcn.0057c1a0
mov eax, dword [0x73b494]
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.0055a180
add esp, 8
call fcn.00407ff0
push 5
push 0
push 0x6985e0
lea edx, [esp + 0x10]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop esi
jge 0x408342
push eax
lea eax, [esp + 4]
push eax
push str.failed_to_launch__s___d
call fcn.0055a350
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.0057bd22
add esp, 0x20c
ret
Function at 0x408370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5ca188
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x6926e4]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
fldz
lea ecx, [esp + 0x10]
fst dword [esi]
mov dword [esi + 8], 0
fstp dword [esi + 4]
call fcn.0040e240
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0
call fcn.0040e400
movzx eax, word [esp + 0x54]
push 0x667190
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4084ad
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 0x4084ad
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.0040e4c0
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040e420
push eax
lea ecx, [esp + 0x18]
call fcn.0040e440
mov ecx, dword [0x698a6c]
push eax
add ecx, 0x50
call fcn.0055c9b0
push eax
call sub.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory
test eax, eax
jne 0x4084ad
mov ecx, dword [0x698a6c]
call fcn.0056ad70
push 1
push 1
push 0x16
push 4
push 4
mov ecx, eax
mov dword [esi + 8], eax
call fcn.0056c600
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push edx
call fcn.0056c480
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [ecx + 0x44]
call eax
fild dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
fild dword [esp + 0x38]
test ecx, ecx
jge 0x40848e
fadd dword [0x668358]
fdivp st(1)
mov edx, dword [esp + 0x3c]
fstp dword [esi]
fild dword [esp + 0x5c]
fild dword [esp + 0x3c]
test edx, edx
jge 0x4084a8
fadd dword [0x668358]
fdivp st(1)
fstp dword [esi + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0040e320
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 0xc

Function at 0x408570
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0xf003f
push ebx
push str.SoftwareArktos_Entertainment_GroupWarZ
mov byte [esi], bl
mov byte [esi + 0x80], bl
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
push connect
mov dword [esi + 0x10c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4085e0
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push esi
push ebx
push ebx
push str.username
push edx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
add esp, 8
ret
Function at 0x409b40
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x6926e4]
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.0055ae20
add esp, 0xc
test al, al
je 0x409b7f
mov edx, dword [esp + 0x10]
cmp edx, dword [esi + 0x112]
je 0x409c64
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x666c64
push esi
call fcn.0057cc13
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x409bbf
push esi
push str.Cant_replace_file__s_nPlease_delete_this_file_manually
lea edx, [esp + 0x20]
call fcn.00401e30
add esp, 8
lea eax, [esp + 0x18]
push eax
mov eax, edi
call fcn.00408ff0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.0040e420
push eax
mov ecx, ebx
call fcn.0040e440
push eax
push esi
lea ecx, [edi + 0x4e0]
call fcn.005672d0
mov eax, dword [esi + 0x10a]
cmp eax, dword [esp + 8]
je 0x409c0a
push 0
push 0x183
push str..Updater.cpp
push str.fe__size__out_size
call fcn.0055a490
add esp, 0x10
lea ebx, [edi + 0x20dd4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ebp
push 1
push ecx
push edx
call fcn.0057d5f5
push ebp
call fcn.0057c1a0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.WarZ.exe
push esi
call fcn.0057e05d
add esp, 8
test eax, eax
jne 0x409c57
mov byte [edi + 0x21654], 1
call fcn.00409f00
mov eax, dword [esp + 0xc]
push eax
call fcn.0057d747
add esp, 4
mov ecx, dword [esp + 0x41c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0057bd22
add esp, 0x41c
ret
Function at 0x409d50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5cad90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6926e4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push 4
xor esi, esi
mov dword [esp + 0x18], ebx
call fcn.0057c795
add esp, 4
cmp eax, esi
je 0x409d97
lea ecx, [esp + 0x18]
mov dword [eax], ecx
jmp 0x409d99
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 1
call fcn.0040c260
mov edx, dword [edi + 0x5f8]
sub edx, dword [edi + 0x5f4]
sar edx, 2
test edx, edx
jbe 0x409e2f
mov ebp, 0x100000
jmp 0x409de0
mov eax, dword [edi + 0x5f8]
sub eax, dword [edi + 0x5f4]
sar eax, 2
cmp esi, eax
jb 0x409df8
call fcn.0057d0e4
mov ecx, dword [edi + 0x5f4]
mov eax, dword [ecx + esi*4]
test dword [eax + 0x116], ebp
jne 0x409e15
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040c370
inc ebx
mov eax, dword [edi + 0x5f8]
sub eax, dword [edi + 0x5f4]
inc esi
sar eax, 2
cmp esi, eax
jb 0x409de0
mov dword [esp + 0x14], ebx
xor esi, esi
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409ea8
xor ebp, ebp
lea ebx, [edi + 0x5e4]
cmp esi, eax
jb 0x409e5d
call fcn.0057d0e4
mov ecx, dword [esp + 0x24]
lea edi, [ecx + ebp]
push edi
mov ecx, ebx
call fcn.00568b40
test byte [edi + 0x116], 1
je 0x409e7c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebp, 0x128
cmp esi, eax
jb 0x409e5d
mov ebx, dword [esp + 0x14]
xor esi, esi
push ebx
push str.removed__d_files_n
call fcn.0055a180
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, esi
je 0x409ec7
push eax
call fcn.0057c38d
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0057c38d
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x409f00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x6926e4]
xor eax, esp
mov dword [esp + 0x614], eax
lea eax, [esp + 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.WarZ.exe
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 8]
push 0x66788c
push edx
call fcn.00401e10
push str.The_War_Z
push str.Allow_network_traffic_for__s
lea edx, [esp + 0x228]
call fcn.00401e30
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a40
mov ecx, dword [esp + 0x630]
add esp, 0x1c
xor ecx, esp
call fcn.0057bd22
add esp, 0x61c
ret