joyce8/EMBER2024-capa huggingface dataset:
Function at 0x580760
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 + 0x216e0], 1
je 0x580963
cmp byte [0x74f8e0], 0
je 0x58084a
cmp byte [0x74fae0], 0
je 0x58084a
cmp byte [0x74fce0], 0
je 0x58084a
push ecx
mov ecx, 0x6a4190
call fcn.0057e9a0
add esp, 4
test al, al
je 0x58084a
movss xmm0, dword [0x6a419c]
lea eax, [ebp - 4]
movss xmm3, dword [0x6a4198]
movss xmm2, dword [0x6a4194]
movss xmm1, dword [0x6a4190]
push eax
push ecx
mov ecx, dword [0x74db90]
movss dword [esp], xmm0
call fcn.00583a30
cmp dword [0x74db60], 0
je 0x58084a
lea ecx, [esi + 0x216e4]
mov edx, 0x74f8e0
call fcn.005827b0
lea ecx, [esi + 0x21764]
mov edx, 0x74fae0
call fcn.005827b0
lea ecx, [esi + 0x217e4]
mov edx, 0x74fce0
call fcn.005827b0
lea edx, [esi + 0x218e8]
lea ecx, [esi + 0x21864]
call fcn.005827b0
mov ecx, esi
call fcn.005875e0
mov eax, dword [0x74f8d8]
xor edi, edi
mov ebx, 0x74f8e0
mov esi, 0x6a41a4
jmp 0x580860
cmp dword [0x74db60], 0
je 0x5808c5
movd xmm2, dword [0x74db68]
movss xmm1, dword [esi - 4]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x5808c5
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
comiss xmm0, xmm2
jb 0x5808c5
movd xmm1, dword [0x74db64]
movss xmm0, dword [esi]
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jb 0x5808c5
addss xmm0, dword [esi + 8]
comiss xmm0, xmm1
jb 0x5808c5
mov eax, edi
mov dword [0x74f8d8], eax
mov dword [0x6a53e4], 0x74e1f8
mov dword [0x6a53e0], 0x74e1f8
cmp edi, 1
je 0x5808d3
cmp edi, 2
je 0x5808d3
xor ecx, ecx
jmp 0x5808d8
mov ecx, 1
push dword [edi*4 + 0x674d48]
movss xmm1, dword [esi]
cmp eax, edi
movss xmm0, dword [esi - 4]
push ecx
sete dl
mov ecx, ebx
call fcn.0057fd00
add esp, 8
cmp eax, 9
jne 0x580917
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [0x74f8d8]
je 0x580926
dec eax
jmp 0x58092e
cmp eax, 0xd
jne 0x580929
cmp byte [ebx], 0
je 0x580929
mov eax, dword [0x74f8d8]
inc eax
jmp 0x58092e
mov eax, dword [0x74f8d8]
cmp eax, 3
jl 0x580937
xor eax, eax
jmp 0x580941
test eax, eax
mov ecx, 2
cmovs eax, ecx
add esi, 0x10
mov dword [0x74f8d8], eax
inc edi
add ebx, 0x200
cmp esi, 0x6a41d4
jl 0x580860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movss xmm1, dword [0x67697c]
xor ebx, ebx
movss xmm2, dword [0x676978]
mov esi, 0x6a41a4
mov edi, 0x74f8e0
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.00597730
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.0057fd00
movss xmm1, dword [0x67697c]
add edi, 0x200
movss xmm2, dword [0x676978]
add esp, 8
inc ebx
add esi, 0x10
cmp edi, 0x74fee0
jl 0x580980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x580a30
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 + 0x216e0], 1
je 0x580c20
cmp byte [0x74f6d8], 0
je 0x580ae5
movd xmm2, dword [0x74db68]
movss xmm1, dword [0x6a4170]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x580ae5
movss xmm3, dword [0x6a4178]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x580ae5
movd xmm4, dword [0x74db64]
movss xmm2, dword [0x6a4174]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x580ae5
movss xmm5, dword [0x6a417c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x580ae5
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x74db7c]
movss dword [esp], xmm5
call fcn.00583a30
cmp dword [0x74db60], 0
je 0x580ae5
push ecx
mov ecx, esi
call fcn.005876c0
pop esi
mov esp, ebp
pop ebp
ret
movd xmm2, dword [0x74db68]
movss xmm1, dword [0x6a4160]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x580b60
movss xmm3, dword [0x6a4168]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x580b60
movd xmm4, dword [0x74db64]
movss xmm2, dword [0x6a4164]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x580b60
movss xmm5, dword [0x6a416c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x580b60
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x74db80]
movss dword [esp], xmm5
call fcn.00583a30
jmp 0x580b60
cmp dword [0x74db60], 0
movss xmm1, dword [0x6a4184]
movss xmm2, dword [0x6a4180]
je 0x580bf3
movd xmm3, dword [0x74db68]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm2
jb 0x580bf3
movss xmm0, dword [0x6a4188]
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x580bf3
movd xmm3, dword [0x74db64]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm1
jb 0x580bf3
movss xmm0, dword [0x6a418c]
addss xmm0, xmm1
comiss xmm0, xmm3
jb 0x580bf3
xor eax, eax
movaps xmm0, xmm2
test eax, eax
mov dword [0x74f6d0], eax
push 0x40
mov dword [0x6a53e4], 0x74e1f8
sete dl
push eax
mov ecx, 0x74f6d8
mov dword [0x6a53e0], 0x74e1f8
call fcn.0057fd00
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x74f6d0]
movaps xmm0, xmm2
test eax, eax
mov ecx, 0x74f6d8
push 0x40
sete dl
push 0
call fcn.0057fd00
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
movss xmm0, dword [0x6a418c]
lea eax, [ebp - 8]
addss xmm0, dword [0x67697c]
push 0
push 0
push eax
sub esp, 0x10
mov dword [ebp - 8], 0x64000000
movss dword [esp + 0xc], xmm0
movss xmm0, dword [0x6a4188]
addss xmm0, dword [0x67697c]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x6a4184]
subss xmm0, dword [0x676978]
movss dword [esp + 4], xmm0
movss xmm0, dword [0x6a4180]
subss xmm0, dword [0x676978]
movss dword [esp], xmm0
call fcn.00597730
movss xmm1, dword [0x6a4184]
add esp, 0x1c
movss xmm0, dword [0x6a4180]
xor dl, dl
mov ecx, 0x74f6d8
push 0x20
push 0
call fcn.0057fd00
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58152a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x204]
add ecx, 0x215d0
push eax
mov esi, edx
call fcn.00588d50
cmp esi, 5
ja case.default.0x5814cd
jmp dword [esi*4 + 0x581554]
lea eax, [ebp - 0x404]
push str.https:__www.google.com_
push eax
call fcn.0057dea0
add esp, 8
lea eax, [ebp - 0x404]
push 5
push 0
push 0x674dac
push eax
jmp 0x581538
push 5
push 0
push 0x674dac
push str.https:__www.google.com_
jmp 0x581538
push 5
push 0
push 0x674dac
push str.https:__www.youtube.com_
jmp 0x581538
push 5
push 0
push 0x674dac
push str.https:__www.facebook.com_
jmp 0x581538
push 5
push 0
push 0x674dac
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.005aeae3
mov esp, ebp
pop ebp
ret
Function at 0x581a80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc3a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6a1da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x21b94], 2
jne 0x581b2c
lea esi, [edi + 0x21b7c]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x21bc0], 0
je 0x581b0a
cmp byte [0x6a4060], 0
je 0x581b0a
cmp dword [edi + 0x21bc4], 0x10
lea eax, [edi + 0x21bb0]
mov byte [0x6a4060], 0
jb 0x581af3
mov eax, dword [eax]
push 5
push 0
push 0x674dac
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
movss xmm1, dword [0x67699c]
lea ecx, [edi + 0x21b70]
movss xmm0, dword [0x67698c]
call fcn.00581810
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 0x581c90
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc3db
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.Starting_game_n
call fcn.00589970
inc dword [0x6a82f8]
add esp, 4
push 6
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc18]
push eax
push str.warzsiam.exe
call fcn.0058a940
add esp, 0xc
test al, al
jne 0x581d10
push str.failed1_n
call fcn.00589970
add esp, 4
jmp 0x581d29
push dword [ebp - 0xc1c]
push dword [ebp - 0xc18]
push str._08x__d_n
call fcn.00589970
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea ecx, [esi + 0x215d0]
call fcn.00588d50
push 0
lea eax, [ebp - 0xc14]
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
jne 0x581dd3
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581d70
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.LoginToken
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x581dd3
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
call fcn.00597d00
add esp, 4
push eax
push 0xffffffffffffffff
call fcn.00597d00
add esp, 4
push eax
lea eax, [ebp - 0x410]
push str._08X_08X
push eax
call fcn.0057dea0
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push 0x6a9960
lea eax, [ebp - 0xc10]
push str._WOUpdatedOk__s__WOLogin___s_
push eax
call fcn.00582750
add esp, 0x10
cmp dword [esi + 0x21bd8], 0
jbe 0x581e42
lea ecx, [ebp - 0xc10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581e05
sub ecx, edx
lea eax, [ebp - 0xc10]
add eax, ecx
cmp dword [esi + 0x21bdc], 0x10
mov dword [ebp - 0xc14], eax
lea eax, [esi + 0x21bc8]
jb 0x581e2d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc14]
push str.__survey___s_
push eax
call fcn.00582790
add esp, 0xc
push 5
push 0
lea eax, [ebp - 0xc10]
push eax
push str.warzsiam.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x581e72
push eax
push str.failed:__d_n
call fcn.00589970
add esp, 8
mov eax, dword [0x6a82f8]
test eax, eax
je 0x581e81
dec eax
mov dword [0x6a82f8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aeae3
mov esp, ebp
pop ebp
ret
Function at 0x582d70
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.005878b0
call fcn.00589d80
call fcn.005893c0
call fcn.00589d80
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x20d84], 3
jne 0x582db7
mov dword [esi + 0x20d84], 5
cmp dword [esi + 0x20d88], 0
jne 0x582e61
mov edi, dword [esi + 0x21590]
mov eax, edi
mov ebx, dword [esi + 0x21594]
or eax, ebx
jne 0x582ddb
xorps xmm1, xmm1
jmp 0x582e21
mov edx, dword [esi + 0x2159c]
mov ecx, dword [esi + 0x21598]
call fcn.005b6b4f
cvtsd2ss xmm0, xmm0
mov edx, ebx
mov ecx, edi
movss dword [ebp - 0x20c], xmm0
call fcn.005b6b4f
movss xmm1, dword [ebp - 0x20c]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x676974]
comiss xmm1, xmm0
jbe 0x582e21
movaps xmm1, xmm0
mulss xmm1, dword [0x676990]
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.00582770
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
jmp 0x582d92
mov ecx, esi
call fcn.005879d0
mov eax, dword [esi + 0x20d88]
dec eax
je 0x582ea5
dec eax
je 0x582e8f
dec eax
je 0x582eb2
push 0
push 0x37
push str.Main_CmdLine.cpp
push 0x674d44
call fcn.00589e40
add esp, 0x10
jmp 0x582eb2
lea eax, [esi + 0x2118d]
push eax
push str.Update_error_n_s_n_nPlease_retry_later
call fcn.00589970
add esp, 8
jmp 0x582eb2
push str.Update_ok_n
call fcn.00589970
add esp, 4
push str._nPress_enter_to_exit...
call fcn.00589970
add esp, 4
call fcn.005b0893
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aeae3
mov esp, ebp
pop ebp
ret
Function at 0x583570
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 [0x6a1da0]
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.005af860
add esp, 8
test eax, eax
jne 0x5835e7
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s.new.exe
push eax
call fcn.0057de80
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.005aeae3
mov esp, ebp
pop ebp
ret
push edi
push str..exe_updated__moving_back_n
mov byte [0x74db52], 1
call fcn.00589970
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.005af37d
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x583630
sub ecx, edx
cmp ecx, 8
ja 0x583654
push 0
push 0x31
push str.SelfUpdateEXE.cpp
push str.strlen_exeMain____8
call fcn.00589e40
add esp, 0x10
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x583660
sub ecx, edx
add ecx, 0xfffffff8
cmp ecx, 0x104
jae 0x583771
push ebx
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x108]
push esi
push eax
push str.exeMain:__s_n
call fcn.00589970
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 0x58375e
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x58375e
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x5836a0
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.0057dea0
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 0x674d7c
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.005aeae3
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.005aeae3
mov esp, ebp
pop ebp
ret
call fcn.005afe87
int3
Function at 0x583780
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 [0x6a1da0]
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.00589970
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push str._s.new.exe
push eax
call fcn.0057de80
lea eax, [ebp - 0x108]
push 0x6749bc
push eax
call fcn.005af7fb
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x5837fe
lea eax, [ebp - 0x108]
push eax
push str.cant_open__s_for_writing_n
call fcn.00589590
add esp, 8
push esi
push 1
push edi
push ebx
call fcn.005b0a13
push esi
call fcn.005af1d5
add esp, 0x14
push dword [0x74dbf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push str.executing__s_n
call fcn.00589970
add esp, 8
lea eax, [ebp - 0x108]
push 5
push 0
push 0x6a9960
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebx
cmp eax, 0x20
jge 0x58386b
push eax
lea eax, [ebp - 0x108]
push eax
push str.failed_to_launch__s___d
call fcn.00589590
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.005aeae3
mov esp, ebp
pop ebp
ret

Function at 0x583b00
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 + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
push SysReAllocString
mov dword [esi + 0x10c], 0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x583b87
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 0x583bcb
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 0x5852d0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6a1da0]
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.0058a940
add esp, 0xc
test al, al
je 0x58531b
mov eax, dword [ebp - 0x418]
cmp eax, dword [edi + 0x10e]
je 0x5853fd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push 0x6749bc
push edi
call fcn.005af7fb
add esp, 8
mov dword [ebp - 0x410], eax
test eax, eax
je 0x585410
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.0059a660
mov eax, dword [edi + 0x106]
cmp eax, dword [ebp - 0x414]
je 0x585396
push 0
push 0x18b
push str.Updater.cpp
push str.fe__size__out_size
call fcn.00589e40
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.005b0a13
push dword [ebp - 0x410]
call fcn.005af1d5
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.warzsiam.exe
push edi
call fcn.005b2b0b
add esp, 8
test eax, eax
jne 0x5853ef
mov byte [ebx + 0x215c4], 1
call fcn.005856b0
push dword [ebp - 0x40c]
call fcn.0058ba70
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aeae3
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.0057dea0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call fcn.00584700
int3
Function at 0x585510
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc818
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6a1da0]
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.00587c50
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 0x58562c
lea esp, [esp]
mov eax, dword [esi + 0x5c8]
mov esi, dword [eax + edi*4]
test dword [esi + 0x116], 0x100000
jne 0x58560e
cmp esi, ebx
jae 0x5855e1
mov eax, dword [ebp - 0x24]
cmp eax, esi
ja 0x5855e1
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 0x5855d6
push ecx
lea ecx, [ebp - 0x24]
call fcn.00587cf0
mov ebx, dword [ebp - 0x20]
imul esi, esi, 0x128
add esi, dword [ebp - 0x24]
jmp 0x5855f2
cmp ebx, dword [ebp - 0x1c]
jne 0x5855f2
push ecx
lea ecx, [ebp - 0x24]
call fcn.00587cf0
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x585602
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 0x585590
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 0x585678
add esi, 0x5c4
mov dword [ebp - 0x18], esi
mov esi, edi
mov edi, dword [ebp - 0x18]
push esi
mov ecx, edi
call fcn.0059a280
test byte [esi + 0x116], 1
je 0x58566c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x128
dec ebx
jne 0x585654
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x14]
push str.removed__d_files_n
call fcn.00589970
add esp, 8
test edi, edi
je 0x585695
push edi
call fcn.0058ba70
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 0x5856b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x6a1da0]
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.warzsiam.exe
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x675734
push eax
call fcn.0057de80
push str.WarZ_Siam_MMO__Survivor_Stories
lea eax, [ebp - 0x618]
push str.Allow_network_traffic_for__s
push eax
call fcn.0057dea0
add esp, 0x1c
lea eax, [ebp - 0x618]
lea ecx, [ebp - 0x110]
push eax
call fcn.0057db30
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.005aeae3
mov esp, ebp
pop ebp
ret