joyce8/EMBER2024-capa huggingface dataset:
Function at 0x582b70
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 0x582d73
cmp byte [0x89d5d0], 0
je 0x582c5a
cmp byte [0x89d7d0], 0
je 0x582c5a
cmp byte [0x89d9d0], 0
je 0x582c5a
push ecx
mov ecx, 0x6d0340
call fcn.00580c00
add esp, 4
test al, al
je 0x582c5a
movss xmm0, dword [0x6d034c]
lea eax, [ebp - 4]
movss xmm3, dword [0x6d0348]
movss xmm2, dword [0x6d0344]
movss xmm1, dword [0x6d0340]
push eax
push ecx
mov ecx, dword [0x88eec0]
movss dword [esp], xmm0
call fcn.00585900
cmp dword [0x88ee90], 0
je 0x582c5a
lea ecx, [esi + 0x21764]
mov edx, 0x89d5d0
call fcn.00584db0
lea ecx, [esi + 0x217e4]
mov edx, 0x89d7d0
call fcn.00584db0
lea ecx, [esi + 0x21864]
mov edx, 0x89d9d0
call fcn.00584db0
lea edx, [esi + 0x21968]
lea ecx, [esi + 0x218e4]
call fcn.00584db0
mov ecx, esi
call fcn.005893e0
mov eax, dword [0x89d5c8]
xor edi, edi
mov ebx, 0x89d5d0
mov esi, 0x6d0354
jmp 0x582c70
cmp dword [0x88ee90], 0
je 0x582cd5
movd xmm2, dword [0x88ee98]
movss xmm1, dword [esi - 4]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x582cd5
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
comiss xmm0, xmm2
jb 0x582cd5
movd xmm1, dword [0x88ee94]
movss xmm0, dword [esi]
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jb 0x582cd5
addss xmm0, dword [esi + 8]
comiss xmm0, xmm1
jb 0x582cd5
mov eax, edi
mov dword [0x89d5c8], eax
mov dword [0x6d1594], 0x88f528
mov dword [0x6d1590], 0x88f528
cmp edi, 1
je 0x582ce3
cmp edi, 2
je 0x582ce3
xor ecx, ecx
jmp 0x582ce8
mov ecx, 1
push dword [edi*4 + 0x6902a0]
movss xmm1, dword [esi]
cmp eax, edi
movss xmm0, dword [esi - 4]
push ecx
sete dl
mov ecx, ebx
call fcn.00582170
add esp, 8
cmp eax, 9
jne 0x582d27
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [0x89d5c8]
je 0x582d36
dec eax
jmp 0x582d3e
cmp eax, 0xd
jne 0x582d39
cmp byte [ebx], 0
je 0x582d39
mov eax, dword [0x89d5c8]
inc eax
jmp 0x582d3e
mov eax, dword [0x89d5c8]
cmp eax, 3
jl 0x582d47
xor eax, eax
jmp 0x582d51
test eax, eax
mov ecx, 2
cmovs eax, ecx
add esi, 0x10
mov dword [0x89d5c8], eax
inc edi
add ebx, 0x200
cmp esi, 0x6d0384
jl 0x582c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movss xmm1, dword [0x696744]
xor ebx, ebx
movss xmm2, dword [0x696740]
mov esi, 0x6d0354
mov edi, 0x89d5d0
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.005a7c50
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.00582170
movss xmm1, dword [0x696744]
add edi, 0x200
movss xmm2, dword [0x696740]
add esp, 8
inc ebx
add esi, 0x10
cmp edi, 0x89dbd0
jl 0x582d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x582e40
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 0x583030
cmp byte [0x89d3c8], 0
je 0x582ef5
movd xmm2, dword [0x88ee98]
movss xmm1, dword [0x6d0320]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x582ef5
movss xmm3, dword [0x6d0328]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x582ef5
movd xmm4, dword [0x88ee94]
movss xmm2, dword [0x6d0324]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x582ef5
movss xmm5, dword [0x6d032c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x582ef5
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x88eeac]
movss dword [esp], xmm5
call fcn.00585900
cmp dword [0x88ee90], 0
je 0x582ef5
push ecx
mov ecx, esi
call fcn.005894c0
pop esi
mov esp, ebp
pop ebp
ret
movd xmm2, dword [0x88ee98]
movss xmm1, dword [0x6d0310]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x582f70
movss xmm3, dword [0x6d0318]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x582f70
movd xmm4, dword [0x88ee94]
movss xmm2, dword [0x6d0314]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x582f70
movss xmm5, dword [0x6d031c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x582f70
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x88eeb0]
movss dword [esp], xmm5
call fcn.00585900
jmp 0x582f70
cmp dword [0x88ee90], 0
movss xmm1, dword [0x6d0334]
movss xmm2, dword [0x6d0330]
je 0x583003
movd xmm3, dword [0x88ee98]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm2
jb 0x583003
movss xmm0, dword [0x6d0338]
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x583003
movd xmm3, dword [0x88ee94]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm1
jb 0x583003
movss xmm0, dword [0x6d033c]
addss xmm0, xmm1
comiss xmm0, xmm3
jb 0x583003
xor eax, eax
movaps xmm0, xmm2
test eax, eax
mov dword [0x89d3c0], eax
push 0x40
mov dword [0x6d1594], 0x88f528
sete dl
push eax
mov ecx, 0x89d3c8
mov dword [0x6d1590], 0x88f528
call fcn.00582170
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x89d3c0]
movaps xmm0, xmm2
test eax, eax
mov ecx, 0x89d3c8
push 0x40
sete dl
push 0
call fcn.00582170
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
movss xmm0, dword [0x6d033c]
lea eax, [ebp - 8]
addss xmm0, dword [0x696744]
push 0
push 0
push eax
sub esp, 0x10
mov dword [ebp - 8], 0x64000000
movss dword [esp + 0xc], xmm0
movss xmm0, dword [0x6d0338]
addss xmm0, dword [0x696744]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x6d0334]
subss xmm0, dword [0x696740]
movss dword [esp + 4], xmm0
movss xmm0, dword [0x6d0330]
subss xmm0, dword [0x696740]
movss dword [esp], xmm0
call fcn.005a7c50
movss xmm1, dword [0x6d0334]
add esp, 0x1c
movss xmm0, dword [0x6d0330]
xor dl, dl
mov ecx, 0x89d3c8
push 0x20
push 0
call fcn.00582170
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5838ba
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x6cdf60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x204]
add ecx, 0x215d0
push eax
mov esi, edx
call fcn.0058b4c0
cmp esi, 5
ja case.default.0x58385d
jmp dword [esi*4 + 0x5838e4]
lea eax, [ebp - 0x404]
push str.https:__www.google.com_
push eax
call fcn.0057e490
add esp, 8
lea eax, [ebp - 0x404]
push 5
push 0
push 0x68fc7c
push eax
jmp 0x5838c8
push 5
push 0
push 0x68fc7c
push str.https:__www.google.com_
jmp 0x5838c8
push 5
push 0
push 0x68fc7c
push str.https:__www.youtube.com_
jmp 0x5838c8
push 5
push 0
push 0x68fc7c
push str.https:__www.facebook.com_
jmp 0x5838c8
push 5
push 0
push 0x68fc7c
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.005bf536
mov esp, ebp
pop ebp
ret
Function at 0x583e10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5f88
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6cdf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x21c14], 2
jne 0x583ebc
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 0x583e9a
cmp byte [0x6d0218], 0
je 0x583e9a
cmp dword [edi + 0x21c44], 0x10
lea eax, [edi + 0x21c30]
mov byte [0x6d0218], 0
jb 0x583e83
mov eax, dword [eax]
push 5
push 0
push 0x68fc7c
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
movss xmm1, dword [0x696764]
lea ecx, [edi + 0x21bf0]
movss xmm0, dword [0x696754]
call fcn.00583ba0
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 0x584020
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 0x584055
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 0x584060
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 0x58404e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x584dd0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6cdf60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.005896b0
call fcn.0059a370
call fcn.005999b0
call fcn.0059a370
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x20d84], 3
jne 0x584e17
mov dword [esi + 0x20d84], 5
cmp dword [esi + 0x20d88], 0
jne 0x584ec1
mov edi, dword [esi + 0x21590]
mov eax, edi
mov ebx, dword [esi + 0x21594]
or eax, ebx
jne 0x584e3b
xorps xmm1, xmm1
jmp 0x584e81
mov edx, dword [esi + 0x2159c]
mov ecx, dword [esi + 0x21598]
call fcn.005c7cad
cvtsd2ss xmm0, xmm0
mov edx, ebx
mov ecx, edi
movss dword [ebp - 0x20c], xmm0
call fcn.005c7cad
movss xmm1, dword [ebp - 0x20c]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x69673c]
comiss xmm1, xmm0
jbe 0x584e81
movaps xmm1, xmm0
mulss xmm1, dword [0x696758]
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.00584d70
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
jmp 0x584df2
mov ecx, esi
call fcn.005897d0
mov eax, dword [esi + 0x20d88]
dec eax
je 0x584f05
dec eax
je 0x584eef
dec eax
je 0x584f12
push 0
push 0x37
push str.Main_CmdLine.cpp
push str.0___.
call fcn.0059a430
add esp, 0x10
jmp 0x584f12
lea eax, [esi + 0x2118d]
push eax
push str.Update_error_n_s_n_nPlease_retry_later
call fcn.00599f60
add esp, 8
jmp 0x584f12
push str.Update_ok_n
call fcn.00599f60
add esp, 4
push str._nPress_enter_to_exit...
call fcn.00599f60
add esp, 4
call fcn.005c158c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bf536
mov esp, ebp
pop ebp
ret
Function at 0x585440
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 [0x6cdf60]
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.005c0ab0
add esp, 8
test eax, eax
jne 0x5854b7
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s.new.exe
push eax
call fcn.0057e470
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.005bf536
mov esp, ebp
pop ebp
ret
push edi
push str..exe_updated__moving_back_n
mov byte [0x88ee82], 1
call fcn.00599f60
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.005c0414
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585500
sub ecx, edx
cmp ecx, 8
ja 0x585524
push 0
push 0x31
push str.SelfUpdateEXE.cpp
push str.strlen_exeMain____8
call fcn.0059a430
add esp, 0x10
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585530
sub ecx, edx
add ecx, 0xfffffff8
cmp ecx, 0x104
jae 0x585641
push ebx
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x108]
push esi
push eax
push str.exeMain:__s_n
call fcn.00599f60
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 0x58562e
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x58562e
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x585570
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.0057e490
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 0x6902ac
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.005bf536
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.005bf536
mov esp, ebp
pop ebp
ret
call fcn.005c11d1
int3
Function at 0x585650
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 [0x6cdf60]
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.00599f60
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push str._s.new.exe
push eax
call fcn.0057e470
lea eax, [ebp - 0x108]
push 0x68fd54
push eax
call fcn.005c0a50
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x5856ce
lea eax, [ebp - 0x108]
push eax
push str.cant_open__s_for_writing_n
call fcn.00599b80
add esp, 8
push esi
push 1
push edi
push ebx
call fcn.005c16ea
push esi
call fcn.005bfc25
add esp, 0x14
push dword [0x88ef1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push str.executing__s_n
call fcn.00599f60
add esp, 8
lea eax, [ebp - 0x108]
push 5
push 0
push 0x7ea8c0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
cmp eax, 0x20
jge 0x58573b
push eax
lea eax, [ebp - 0x108]
push eax
push str.failed_to_launch__s___d
call fcn.00599b80
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.005bf536
mov esp, ebp
pop ebp
ret

Function at 0x5859d0
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 0x585a57
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 0x585a9b
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 0x5871a0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6cdf60]
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.0059af30
add esp, 0xc
test al, al
je 0x5871eb
mov eax, dword [ebp - 0x418]
cmp eax, dword [edi + 0x10e]
je 0x5872cd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x68fd54
push edi
call fcn.005c0a50
add esp, 8
mov dword [ebp - 0x410], eax
test eax, eax
je 0x5872e0
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.005aab70
mov eax, dword [edi + 0x106]
cmp eax, dword [ebp - 0x414]
je 0x587266
push 0
push 0x18b
push str.Updater.cpp
push str.fe__size__out_size
call fcn.0059a430
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.005c16ea
push dword [ebp - 0x410]
call fcn.005bfc25
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.siamexe.exe
push edi
call fcn.005c3b6b
add esp, 8
test eax, eax
jne 0x5872bf
mov byte [ebx + 0x215c4], 1
call fcn.00587580
push dword [ebp - 0x40c]
call fcn.0059c050
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bf536
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.0057e490
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call fcn.005865d0
int3
Function at 0x5873e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e63d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6cdf60]
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.00589a50
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 0x5874fc
lea esp, [esp]
mov eax, dword [esi + 0x5c8]
mov esi, dword [eax + edi*4]
test dword [esi + 0x116], 0x100000
jne 0x5874de
cmp esi, ebx
jae 0x5874b1
mov eax, dword [ebp - 0x24]
cmp eax, esi
ja 0x5874b1
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 0x5874a6
push ecx
lea ecx, [ebp - 0x24]
call fcn.00589af0
mov ebx, dword [ebp - 0x20]
imul esi, esi, 0x128
add esi, dword [ebp - 0x24]
jmp 0x5874c2
cmp ebx, dword [ebp - 0x1c]
jne 0x5874c2
push ecx
lea ecx, [ebp - 0x24]
call fcn.00589af0
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x5874d2
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 0x587460
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 0x587548
add esi, 0x5c4
mov dword [ebp - 0x18], esi
mov esi, edi
mov edi, dword [ebp - 0x18]
push esi
mov ecx, edi
call fcn.005aa790
test byte [esi + 0x116], 1
je 0x58753c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x128
dec ebx
jne 0x587524
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x14]
push str.removed__d_files_n
call fcn.00599f60
add esp, 8
test edi, edi
je 0x587565
push edi
call fcn.0059c050
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 0x587580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x6cdf60]
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 0x694ee4
push eax
call fcn.0057e470
push str.WarZ_Siam_MMO__Survivor_Stories
lea eax, [ebp - 0x618]
push str.Allow_network_traffic_for__s
push eax
call fcn.0057e490
add esp, 0x1c
lea eax, [ebp - 0x618]
lea ecx, [ebp - 0x110]
push eax
call fcn.0057e120
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.005bf536
mov esp, ebp
pop ebp
ret
Function at 0x587a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6cdf60]
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.00599f60
add esp, 4
lea ecx, [edi + 0x4c0]
push 1
push 1
call fcn.005a9f70
mov eax, dword [edi + 0x5cc]
xor ebx, ebx
sub eax, dword [edi + 0x5c8]
sar eax, 2
test eax, eax
je 0x587b43
push esi
lea ecx, [ecx]
mov eax, dword [edi + 0x5c8]
mov esi, dword [eax + ebx*4]
test byte [esi + 0x116], 1
je 0x587b2a
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.0059af30
add esp, 0xc
test al, al
je 0x587af9
mov eax, dword [ebp - 0x40c]
cmp eax, dword [esi + 0x10e]
jne 0x587af9
mov eax, dword [ebp - 0x408]
cmp eax, dword [esi + 0x106]
je 0x587b2a
push esi
push str.restoring__s_n
call fcn.00599f60
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x695064
push esi
lea ecx, [edi + 0x4c0]
call fcn.005a9550
test al, al
je 0x587b6b
mov eax, dword [edi + 0x5cc]
inc ebx
sub eax, dword [edi + 0x5c8]
sar eax, 2
cmp ebx, eax
jb 0x587ab0
pop esi
lea ecx, [edi + 0x4c0]
call fcn.005a9250
push str.Making_sure_extracted_files_exists___finished_n
call fcn.00599f60
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop ebx
call fcn.005bf536
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.0057e490
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.005865d0
int3