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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x70
mov esi, ecx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp dword [esi + 0x21760], 1
je 0x580f33
cmp byte [0x886cf0], 0
je 0x580e1a
cmp byte [0x886ef0], 0
je 0x580e1a
cmp byte [0x8870f0], 0
je 0x580e1a
push ecx
mov ecx, 0x6c5360
call fcn.0057edc0
add esp, 4
test al, al
je 0x580e1a
movss xmm0, dword [0x6c536c]
lea eax, [ebp - 4]
movss xmm3, dword [0x6c5368]
movss xmm2, dword [0x6c5364]
movss xmm1, dword [0x6c5360]
push eax
push ecx
mov ecx, dword [0x8787e0]
movss dword [esp], xmm0
call fcn.00584220
cmp dword [0x8787b0], 0
je 0x580e1a
lea ecx, [esi + 0x21764]
mov edx, 0x886cf0
call fcn.00582f70
lea ecx, [esi + 0x217e4]
mov edx, 0x886ef0
call fcn.00582f70
lea ecx, [esi + 0x21864]
mov edx, 0x8870f0
call fcn.00582f70
lea edx, [esi + 0x21968]
lea ecx, [esi + 0x218e4]
call fcn.00582f70
mov ecx, esi
call fcn.00587d00
mov eax, dword [0x886ce0]
xor edi, edi
mov ebx, 0x886cf0
mov esi, 0x6c5374
jmp 0x580e30
cmp dword [0x8787b0], 0
je 0x580e95
movd xmm2, dword [0x8787b8]
movss xmm1, dword [esi - 4]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x580e95
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
comiss xmm0, xmm2
jb 0x580e95
movd xmm1, dword [0x8787b4]
movss xmm0, dword [esi]
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jb 0x580e95
addss xmm0, dword [esi + 8]
comiss xmm0, xmm1
jb 0x580e95
mov eax, edi
mov dword [0x886ce0], eax
mov dword [0x6c65b4], 0x878e48
mov dword [0x6c65b0], 0x878e48
cmp edi, 1
je 0x580ea3
cmp edi, 2
je 0x580ea3
xor ecx, ecx
jmp 0x580ea8
mov ecx, 1
push dword [edi*4 + 0x686158]
movss xmm1, dword [esi]
cmp eax, edi
movss xmm0, dword [esi - 4]
push ecx
sete dl
mov ecx, ebx
call fcn.00580330
add esp, 8
cmp eax, 9
jne 0x580ee7
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [0x886ce0]
je 0x580ef6
dec eax
jmp 0x580efe
cmp eax, 0xd
jne 0x580ef9
cmp byte [ebx], 0
je 0x580ef9
mov eax, dword [0x886ce0]
inc eax
jmp 0x580efe
mov eax, dword [0x886ce0]
cmp eax, 3
jl 0x580f07
xor eax, eax
jmp 0x580f11
test eax, eax
mov ecx, 2
cmovs eax, ecx
add esi, 0x10
mov dword [0x886ce0], eax
inc edi
add ebx, 0x200
cmp esi, 0x6c53a4
jl 0x580e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movss xmm1, dword [0x68c5d4]
xor ebx, ebx
movss xmm2, dword [0x68c5d0]
mov esi, 0x6c5374
mov edi, 0x886cf0
nop
movss xmm0, dword [esi + 8]
lea eax, [ebp - 8]
push 0
addss xmm0, xmm1
mov dword [ebp - 8], 0x64000000
push 0
push eax
sub esp, 0x10
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
movss dword [esp + 8], xmm0
movss xmm0, dword [esi]
subss xmm0, xmm2
movss dword [esp + 4], xmm0
movss xmm0, dword [esi - 4]
subss xmm0, xmm2
movss dword [esp], xmm0
call fcn.005a43d0
movss xmm1, dword [esi]
add esp, 0x1c
movss xmm0, dword [esi - 4]
xor eax, eax
cmp ebx, 1
mov ecx, edi
setge al
xor dl, dl
push 0x20
push eax
call fcn.00580330
movss xmm1, dword [0x68c5d4]
add edi, 0x200
movss xmm2, dword [0x68c5d0]
add esp, 8
inc ebx
add esi, 0x10
cmp edi, 0x8872f0
jl 0x580f50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x581000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x70
mov esi, ecx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp dword [esi + 0x21760], 1
je 0x5811f0
cmp byte [0x886ae0], 0
je 0x5810b5
movd xmm2, dword [0x8787b8]
movss xmm1, dword [0x6c5340]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x5810b5
movss xmm3, dword [0x6c5348]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x5810b5
movd xmm4, dword [0x8787b4]
movss xmm2, dword [0x6c5344]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x5810b5
movss xmm5, dword [0x6c534c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x5810b5
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x8787cc]
movss dword [esp], xmm5
call fcn.00584220
cmp dword [0x8787b0], 0
je 0x5810b5
push ecx
mov ecx, esi
call fcn.00587de0
pop esi
mov esp, ebp
pop ebp
ret
movd xmm2, dword [0x8787b8]
movss xmm1, dword [0x6c5330]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x581130
movss xmm3, dword [0x6c5338]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x581130
movd xmm4, dword [0x8787b4]
movss xmm2, dword [0x6c5334]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x581130
movss xmm5, dword [0x6c533c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x581130
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x8787d0]
movss dword [esp], xmm5
call fcn.00584220
jmp 0x581130
cmp dword [0x8787b0], 0
movss xmm1, dword [0x6c5354]
movss xmm2, dword [0x6c5350]
je 0x5811c3
movd xmm3, dword [0x8787b8]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm2
jb 0x5811c3
movss xmm0, dword [0x6c5358]
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x5811c3
movd xmm3, dword [0x8787b4]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm1
jb 0x5811c3
movss xmm0, dword [0x6c535c]
addss xmm0, xmm1
comiss xmm0, xmm3
jb 0x5811c3
xor eax, eax
movaps xmm0, xmm2
test eax, eax
mov dword [0x886ad8], eax
push 0x40
mov dword [0x6c65b4], 0x878e48
sete dl
push eax
mov ecx, 0x886ae0
mov dword [0x6c65b0], 0x878e48
call fcn.00580330
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x886ad8]
movaps xmm0, xmm2
test eax, eax
mov ecx, 0x886ae0
push 0x40
sete dl
push 0
call fcn.00580330
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
movss xmm0, dword [0x6c535c]
lea eax, [ebp - 8]
addss xmm0, dword [0x68c5d4]
push 0
push 0
push eax
sub esp, 0x10
mov dword [ebp - 8], 0x64000000
movss dword [esp + 0xc], xmm0
movss xmm0, dword [0x6c5358]
addss xmm0, dword [0x68c5d4]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x6c5354]
subss xmm0, dword [0x68c5d0]
movss dword [esp + 4], xmm0
movss xmm0, dword [0x6c5350]
subss xmm0, dword [0x68c5d0]
movss dword [esp], xmm0
call fcn.005a43d0
movss xmm1, dword [0x6c5354]
add esp, 0x1c
movss xmm0, dword [0x6c5350]
xor dl, dl
mov ecx, 0x886ae0
push 0x20
push 0
call fcn.00580330
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x581a7a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x204]
add ecx, 0x215d0
push eax
mov esi, edx
call fcn.00589510
cmp esi, 5
ja case.default.0x581a1d
jmp dword [esi*4 + 0x581aa4]
lea eax, [ebp - 0x404]
push str.https:__www.google.com_
push eax
call fcn.0057e2c0
add esp, 8
lea eax, [ebp - 0x404]
push 5
push 0
push 0x68a47f
push eax
jmp 0x581a88
push 5
push 0
push 0x68a47f
push str.https:__www.google.com_
jmp 0x581a88
push 5
push 0
push 0x68a47f
push str.https:__www.youtube.com_
jmp 0x581a88
push 5
push 0
push 0x68a47f
push str.https:__www.facebook.com_
jmp 0x581a88
push 5
push 0
push 0x68a47f
push str.https:__www.twitter.com_
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
Function at 0x581fd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd048
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6c2da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x21c14], 2
jne 0x58207c
lea esi, [edi + 0x21bfc]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x21c40], 0
je 0x58205a
cmp byte [0x6c5230], 0
je 0x58205a
cmp dword [edi + 0x21c44], 0x10
lea eax, [edi + 0x21c30]
mov byte [0x6c5230], 0
jb 0x582043
mov eax, dword [eax]
push 5
push 0
push 0x68a47f
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
movss xmm1, dword [0x68c5f4]
lea ecx, [edi + 0x21bf0]
movss xmm0, dword [0x68c5e4]
call fcn.00581d60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5821e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareCodex_Development_GroupWarZ_Siam_MMO
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x582215
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x582220
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push 1
push 0
push str.LoginToken
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x58220e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x583560
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00587fd0
call fcn.00596b50
call fcn.00596190
call fcn.00596b50
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x20d84], 3
jne 0x5835a7
mov dword [esi + 0x20d84], 5
cmp dword [esi + 0x20d88], 0
jne 0x583651
mov edi, dword [esi + 0x21590]
mov eax, edi
mov ebx, dword [esi + 0x21594]
or eax, ebx
jne 0x5835cb
xorps xmm1, xmm1
jmp 0x583611
mov edx, dword [esi + 0x2159c]
mov ecx, dword [esi + 0x21598]
call fcn.005c352d
cvtsd2ss xmm0, xmm0
mov edx, ebx
mov ecx, edi
movss dword [ebp - 0x20c], xmm0
call fcn.005c352d
movss xmm1, dword [ebp - 0x20c]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x68c5cc]
comiss xmm1, xmm0
jbe 0x583611
movaps xmm1, xmm0
mulss xmm1, dword [0x68c5e8]
lea eax, [esi + 0x20d8d]
sub esp, 8
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x208]
push str._s:__.1f__
push eax
call fcn.00582f30
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
jmp 0x583582
mov ecx, esi
call fcn.005880f0
mov eax, dword [esi + 0x20d88]
dec eax
je 0x583695
dec eax
je 0x58367f
dec eax
je 0x5836a2
push 0
push 0x37
push str.Main_CmdLine.cpp
push str.0___.
call fcn.00596c10
add esp, 0x10
jmp 0x5836a2
lea eax, [esi + 0x2118d]
push eax
push str.Update_error_n_s_n_nPlease_retry_later
call fcn.00596740
add esp, 8
jmp 0x5836a2
push str.Update_ok_n
call fcn.00596740
add esp, 4
push str._nPress_enter_to_exit...
call fcn.00596740
add esp, 4
call fcn.005bd273
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
Function at 0x583d60
Capabilities:
Copy file
Create process on windows
Delete file
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push str..new.exe
push eax
call fcn.005bc240
add esp, 8
test eax, eax
jne 0x583dd7
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s.new.exe
push eax
call fcn.0057e2a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
push edi
push str..exe_updated__moving_back_n
mov byte [0x8787a2], 1
call fcn.00596740
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x1f4
call edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005bbd5d
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x583e20
sub ecx, edx
cmp ecx, 8
ja 0x583e44
push 0
push 0x31
push str.SelfUpdateEXE.cpp
push str.strlen_exeMain____8
call fcn.00596c10
add esp, 0x10
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x583e50
sub ecx, edx
add ecx, 0xfffffff8
cmp ecx, 0x104
jae 0x583f61
push ebx
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x108]
push esi
push eax
push str.exeMain:__s_n
call fcn.00596740
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
xor esi, esi
lea ecx, [ecx]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x583f4e
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x583f4e
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x583e90
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x60c]
push str.Failed_to_replace_updater_file_n_nPlease_manually_rename__s_to__s
push eax
call fcn.0057e2c0
add esp, 0x10
lea eax, [ebp - 0x60c]
push 0x30
push str.Updater
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push 0
push 0
push 0x686164
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]
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
call fcn.005bceb8
int3
Function at 0x583f70
Capabilities:
Create process on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
mov edi, edx
push eax
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.Trying_to_update_n
call fcn.00596740
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push str._s.new.exe
push eax
call fcn.0057e2a0
lea eax, [ebp - 0x108]
push 0x685c0c
push eax
call fcn.005bc1db
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x583fee
lea eax, [ebp - 0x108]
push eax
push str.cant_open__s_for_writing_n
call fcn.00596360
add esp, 8
push esi
push 1
push edi
push ebx
call fcn.005bd3f3
push esi
call fcn.005bbbb5
add esp, 0x14
push dword [0x87883c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push str.executing__s_n
call fcn.00596740
add esp, 8
lea eax, [ebp - 0x108]
push 5
push 0
push 0x7d4400
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
cmp eax, 0x20
jge 0x58405b
push eax
lea eax, [ebp - 0x108]
push eax
push str.failed_to_launch__s___d
call fcn.00596360
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret

Function at 0x5842f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, ecx
push eax
push 0xf003f
push 0
push str.SoftwareCodex_Development_GroupWarZ_Siam_MMO
mov byte [esi], 0
mov byte [esi + 0x80], 0
mov dword [esi + 0x180], 0
mov dword [esi + 0x184], 0
mov dword [esi + 0x188], 0
push SysReAllocString
mov dword [esi + 0x18c], 0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x584377
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x80
push eax
push esi
push 0
push 0
push str.username
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.AppEventsEventLabelsSystemFool
push SysReAllocString
call edi
test eax, eax
jne 0x5843bb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x80
push eax
lea eax, [esi + 0x80]
push eax
push 0
push 0
push str.password
push dword [ebp - 8]
call ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x585ac0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push eax
lea eax, [ebp - 0x418]
push eax
push edi
call fcn.00597710
add esp, 0xc
test al, al
je 0x585b0b
mov eax, dword [ebp - 0x418]
cmp eax, dword [edi + 0x10e]
je 0x585bed
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x685c0c
push edi
call fcn.005bc1db
add esp, 8
mov dword [ebp - 0x410], eax
test eax, eax
je 0x585c00
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.004011c0
push eax
mov ecx, esi
call fcn.004011f0
push eax
push edi
lea ecx, [ebx + 0x4c0]
call fcn.005a72f0
mov eax, dword [edi + 0x106]
cmp eax, dword [ebp - 0x414]
je 0x585b86
push 0
push 0x18b
push str.Updater.cpp
push str.fe__size__out_size
call fcn.00596c10
add esp, 0x10
lea esi, [ebx + 0x20d6c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x410]
push 1
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
call fcn.005bd3f3
push dword [ebp - 0x410]
call fcn.005bbbb5
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.siamexe.exe
push edi
call fcn.005bf4eb
add esp, 8
test eax, eax
jne 0x585bdf
mov byte [ebx + 0x215c4], 1
call fcn.00585ea0
push dword [ebp - 0x40c]
call fcn.00598830
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret 8
push edi
lea eax, [ebp - 0x408]
push str.Cant_replace_file__s_nPlease_delete_this_file_manually
push eax
call fcn.0057e2c0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call fcn.00584ef0
int3
Function at 0x585d00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6c2da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0x400
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00588370
mov eax, dword [esi + 0x5cc]
xor edi, edi
sub eax, dword [esi + 0x5c8]
mov ebx, dword [ebp - 0x20]
sar eax, 2
mov dword [ebp - 0x10], edi
test eax, eax
je 0x585e1c
lea esp, [esp]
mov eax, dword [esi + 0x5c8]
mov esi, dword [eax + edi*4]
test dword [esi + 0x116], 0x100000
jne 0x585dfe
cmp esi, ebx
jae 0x585dd1
mov eax, dword [ebp - 0x24]
cmp eax, esi
ja 0x585dd1
sub esi, eax
mov eax, 0xdd67c8a7
imul esi
add edx, esi
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ebx, dword [ebp - 0x1c]
jne 0x585dc6
push ecx
lea ecx, [ebp - 0x24]
call fcn.00588410
mov ebx, dword [ebp - 0x20]
imul esi, esi, 0x128
add esi, dword [ebp - 0x24]
jmp 0x585de2
cmp ebx, dword [ebp - 0x1c]
jne 0x585de2
push ecx
lea ecx, [ebp - 0x24]
call fcn.00588410
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x585df2
mov ecx, 0x4a
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
add ebx, 0x128
inc dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x5cc]
sub eax, dword [esi + 0x5c8]
sar eax, 2
cmp edi, eax
jb 0x585d80
mov edi, dword [ebp - 0x24]
mov eax, 0xdd67c8a7
sub ebx, edi
imul ebx
add edx, ebx
sar edx, 8
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x585e68
add esi, 0x5c4
mov dword [ebp - 0x18], esi
mov esi, edi
mov edi, dword [ebp - 0x18]
push esi
mov ecx, edi
call fcn.005a6f10
test byte [esi + 0x116], 1
je 0x585e5c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x128
dec ebx
jne 0x585e44
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x14]
push str.removed__d_files_n
call fcn.00596740
add esp, 8
test edi, edi
je 0x585e85
push edi
call fcn.00598830
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x585ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.siamexe.exe
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x68ae04
push eax
call fcn.0057e2a0
push str.WarZ_Siam_MMO__Survivor_Stories
lea eax, [ebp - 0x618]
push str.Allow_network_traffic_for__s
push eax
call fcn.0057e2c0
add esp, 0x1c
lea eax, [ebp - 0x618]
lea ecx, [ebp - 0x110]
push eax
call fcn.0057df50
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
Function at 0x586380
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push str.Making_sure_extracted_files_exists_n
mov edi, ecx
call fcn.00596740
add esp, 4
lea ecx, [edi + 0x4c0]
push 1
push 1
call fcn.005a66f0
mov eax, dword [edi + 0x5cc]
xor ebx, ebx
sub eax, dword [edi + 0x5c8]
sar eax, 2
test eax, eax
je 0x586463
push esi
lea ecx, [ecx]
mov eax, dword [edi + 0x5c8]
mov esi, dword [eax + ebx*4]
test byte [esi + 0x116], 1
je 0x58644a
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.00597710
add esp, 0xc
test al, al
je 0x586419
mov eax, dword [ebp - 0x40c]
cmp eax, dword [esi + 0x10e]
jne 0x586419
mov eax, dword [ebp - 0x408]
cmp eax, dword [esi + 0x106]
je 0x58644a
push esi
push str.restoring__s_n
call fcn.00596740
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x68af84
push esi
lea ecx, [edi + 0x4c0]
call fcn.005a5cd0
test al, al
je 0x58648b
mov eax, dword [edi + 0x5cc]
inc ebx
sub eax, dword [edi + 0x5c8]
sar eax, 2
cmp ebx, eax
jb 0x5863d0
pop esi
lea ecx, [edi + 0x4c0]
call fcn.005a59d0
push str.Making_sure_extracted_files_exists___finished_n
call fcn.00596740
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop ebx
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x404]
push str.Cant_extract_file__s_nPlease_delete_this_file_manually
push eax
call fcn.0057e2c0
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.00584ef0
int3