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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.005af090
add esp, 8
lea esi, [eax + 1]
cmp esi, 1
jne 0x57ddd8
push 0
push 0x14
push str.GenerateUpdaterXML.cpp
push str._DWORD_fname___1
call fcn.0058a010
add esp, 0x10
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0058ab10
add esp, 0xc
test al, al
jne 0x57de0d
lea eax, [ebp - 0x20c]
push eax
push str.failed_to_get_crc_for__s_n
call fcn.00589760
add esp, 8
push str.1.0.1
push esi
lea eax, [ebp - 0x108]
push str._s__s.exe
push eax
call fcn.0057df10
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x57de50
lea eax, [ebp - 0x108]
push eax
push esi
push str.unable_to_copy__s___s_n
call fcn.00589760
add esp, 0xc
push 0x2f
push str.http:__cdn.warzsiam.in.th_warzsiam_launcher_wzupd.xml
call fcn.005af090
mov edi, eax
add esp, 8
test edi, edi
jne 0x57de7a
push eax
push 0x21
push str.GenerateUpdaterXML.cpp
push str.updater_file
call fcn.0058a010
add esp, 0x10
inc edi
push 0x674648
push edi
call fcn.0058b3b0
mov esi, eax
push 0x67464c
push esi
call fcn.005af1c7
push dword [ebp - 0x610]
lea eax, [ebp - 0x108]
push str.1.0.1
push dword [ebp - 0x614]
push eax
push str.http:__cdn.warzsiam.in.th_warzsiam_launcher_
push str.__u_url__s_s__crc__u__ver__s__size__u____n
push esi
call fcn.005af1c7
push str.__p__n
push esi
call fcn.005af1c7
push esi
call fcn.005af345
lea eax, [ebp - 0x108]
push eax
push edi
lea eax, [ebp - 0x60c]
push str.XML__s_generated_nnew_exe:_s
push eax
call fcn.0057df30
add esp, 0x48
lea eax, [ebp - 0x60c]
push 0
push str.Updater_XML
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005aec53
mov esp, ebp
pop ebp
ret

Function at 0x57e980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareCodex_Development_GroupWarZ_Siam_MMO
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x57e9ab
mov al, 1
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 8
push eax
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push 0
push 0
push str.UpdaterTime1
push dword [ebp - 4]
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x57ea0d
push esi
call fcn.005af58d
mov esi, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [ebp - 0xc]
add esi, 0x2a300
adc ecx, 0
cmp edx, ecx
jg 0x57ea0d
jl 0x57ea06
cmp eax, esi
jae 0x57ea0d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57f9c0
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc47e
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x6a1da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x74d727], 0
je 0x57fa3c
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call fcn.005b091a
add eax, 0x20
push eax
push 0x6749dc
push str.CONOUT_
call fcn.005b085a
call fcn.005b091a
push eax
push 0x674dd8
push str.CONIN_
call fcn.005b085a
add esp, 0x18
mov dword [0x6a8250], 1
jmp 0x57fba8
call fcn.0057cc50
push 5
push dword [0x6a994c]
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0
push 0x80
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x800000
push 0
push dword [0x6a9950]
call fcn.0058a310
push 0xc00000
push 0
push dword [0x6a9950]
call fcn.0058a310
add esp, 0x18
push 0x57f840
push 0xfffffffffffffffc
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.00593db0
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateICA]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 8
push ebx
call esi
push 0xa
push ebx
mov edi, eax
call esi
mov ecx, eax
lea eax, [edi - 0x311]
cdq
sub eax, edx
mov esi, eax
push 0
lea eax, [ecx - 0x28a]
sar esi, 1
push 0x28a
cdq
push 0x311
sub eax, edx
sar eax, 1
push eax
push esi
push 0
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x102650
call fcn.0058bc30
add esp, 4
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x57fb24
mov ecx, eax
call fcn.0058bf50
jmp 0x57fb26
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
push 0
push dword [0x6a9950]
mov dword [0x6a8304], eax
call fcn.0058e4f0
call fcn.0057ed60
push str.Sep_11_2024_03:16:28
push str.1.0.1
lea eax, [ebp - 0x210]
push str.WarZ_Siam_MMO__Launcher__s___s_
push eax
call fcn.00582820
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.0057f1f0
push 5
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov ecx, dword [0x6a82ec]
call fcn.00597360
mov ecx, dword [0x6a82e8]
call fcn.005973b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x5807f0
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 + 0x21788], 1
je 0x5809f3
cmp byte [0x74f8d0], 0
je 0x5808da
cmp byte [0x74fad0], 0
je 0x5808da
cmp byte [0x74fcd0], 0
je 0x5808da
push ecx
mov ecx, 0x6a4190
call fcn.0057ea30
add esp, 4
test al, al
je 0x5808da
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 [0x74db80]
movss dword [esp], xmm0
call fcn.00583af0
cmp dword [0x74db50], 0
je 0x5808da
lea ecx, [esi + 0x2178c]
mov edx, 0x74f8d0
call fcn.00582860
lea ecx, [esi + 0x2180c]
mov edx, 0x74fad0
call fcn.00582860
lea ecx, [esi + 0x2188c]
mov edx, 0x74fcd0
call fcn.00582860
lea edx, [esi + 0x21990]
lea ecx, [esi + 0x2190c]
call fcn.00582860
mov ecx, esi
call fcn.005876e0
mov eax, dword [0x74f8c8]
xor edi, edi
mov ebx, 0x74f8d0
mov esi, 0x6a41a4
jmp 0x5808f0
cmp dword [0x74db50], 0
je 0x580955
movd xmm2, dword [0x74db58]
movss xmm1, dword [esi - 4]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x580955
movss xmm0, dword [esi + 4]
addss xmm0, xmm1
comiss xmm0, xmm2
jb 0x580955
movd xmm1, dword [0x74db54]
movss xmm0, dword [esi]
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jb 0x580955
addss xmm0, dword [esi + 8]
comiss xmm0, xmm1
jb 0x580955
mov eax, edi
mov dword [0x74f8c8], eax
mov dword [0x6a53e4], 0x74e1e8
mov dword [0x6a53e0], 0x74e1e8
cmp edi, 1
je 0x580963
cmp edi, 2
je 0x580963
xor ecx, ecx
jmp 0x580968
mov ecx, 1
push dword [edi*4 + 0x674d68]
movss xmm1, dword [esi]
cmp eax, edi
movss xmm0, dword [esi - 4]
push ecx
sete dl
mov ecx, ebx
call fcn.0057fd90
add esp, 8
cmp eax, 9
jne 0x5809a7
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [0x74f8c8]
je 0x5809b6
dec eax
jmp 0x5809be
cmp eax, 0xd
jne 0x5809b9
cmp byte [ebx], 0
je 0x5809b9
mov eax, dword [0x74f8c8]
inc eax
jmp 0x5809be
mov eax, dword [0x74f8c8]
cmp eax, 3
jl 0x5809c7
xor eax, eax
jmp 0x5809d1
test eax, eax
mov ecx, 2
cmovs eax, ecx
add esi, 0x10
mov dword [0x74f8c8], eax
inc edi
add ebx, 0x200
cmp esi, 0x6a41d4
jl 0x5808f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movss xmm1, dword [0x676970]
xor ebx, ebx
movss xmm2, dword [0x67696c]
mov esi, 0x6a41a4
mov edi, 0x74f8d0
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.00597870
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.0057fd90
movss xmm1, dword [0x676970]
add edi, 0x200
movss xmm2, dword [0x67696c]
add esp, 8
inc ebx
add esi, 0x10
cmp edi, 0x74fed0
jl 0x580a10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x580ac0
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 + 0x21788], 1
je 0x580cb0
cmp byte [0x74f6c8], 0
je 0x580b75
movd xmm2, dword [0x74db58]
movss xmm1, dword [0x6a4170]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x580b75
movss xmm3, dword [0x6a4178]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x580b75
movd xmm4, dword [0x74db54]
movss xmm2, dword [0x6a4174]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x580b75
movss xmm5, dword [0x6a417c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x580b75
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x74db6c]
movss dword [esp], xmm5
call fcn.00583af0
cmp dword [0x74db50], 0
je 0x580b75
push ecx
mov ecx, esi
call fcn.005877c0
pop esi
mov esp, ebp
pop ebp
ret
movd xmm2, dword [0x74db58]
movss xmm1, dword [0x6a4160]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm1
jb 0x580bf0
movss xmm3, dword [0x6a4168]
movaps xmm0, xmm1
addss xmm0, xmm3
comiss xmm0, xmm2
jb 0x580bf0
movd xmm4, dword [0x74db54]
movss xmm2, dword [0x6a4164]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm2
jb 0x580bf0
movss xmm5, dword [0x6a416c]
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm0, xmm4
jb 0x580bf0
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [0x74db70]
movss dword [esp], xmm5
call fcn.00583af0
jmp 0x580bf0
cmp dword [0x74db50], 0
movss xmm1, dword [0x6a4184]
movss xmm2, dword [0x6a4180]
je 0x580c83
movd xmm3, dword [0x74db58]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm2
jb 0x580c83
movss xmm0, dword [0x6a4188]
addss xmm0, xmm2
comiss xmm0, xmm3
jb 0x580c83
movd xmm3, dword [0x74db54]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm1
jb 0x580c83
movss xmm0, dword [0x6a418c]
addss xmm0, xmm1
comiss xmm0, xmm3
jb 0x580c83
xor eax, eax
movaps xmm0, xmm2
test eax, eax
mov dword [0x74f6c0], eax
push 0x40
mov dword [0x6a53e4], 0x74e1e8
sete dl
push eax
mov ecx, 0x74f6c8
mov dword [0x6a53e0], 0x74e1e8
call fcn.0057fd90
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x74f6c0]
movaps xmm0, xmm2
test eax, eax
mov ecx, 0x74f6c8
push 0x40
sete dl
push 0
call fcn.0057fd90
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
movss xmm0, dword [0x6a418c]
lea eax, [ebp - 8]
addss xmm0, dword [0x676970]
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 [0x676970]
movss dword [esp + 8], xmm0
movss xmm0, dword [0x6a4184]
subss xmm0, dword [0x67696c]
movss dword [esp + 4], xmm0
movss xmm0, dword [0x6a4180]
subss xmm0, dword [0x67696c]
movss dword [esp], xmm0
call fcn.00597870
movss xmm1, dword [0x6a4184]
add esp, 0x1c
movss xmm0, dword [0x6a4180]
xor dl, dl
mov ecx, 0x74f6c8
push 0x20
push 0
call fcn.0057fd90
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5815aa
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, 0x215f8
push eax
mov esi, edx
call fcn.00588f20
cmp esi, 5
ja case.default.0x58154d
jmp dword [esi*4 + 0x5815d4]
lea eax, [ebp - 0x404]
push str.https:__www.google.com_
push eax
call fcn.0057df30
add esp, 8
lea eax, [ebp - 0x404]
push 5
push 0
push 0x674dcc
push eax
jmp 0x5815b8
push 5
push 0
push 0x674dcc
push str.https:__www.google.com_
jmp 0x5815b8
push 5
push 0
push 0x674dcc
push str.https:__www.youtube.com_
jmp 0x5815b8
push 5
push 0
push 0x674dcc
push str.https:__www.facebook.com_
jmp 0x5815b8
push 5
push 0
push 0x674dcc
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.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x581b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc508
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 + 0x21c3c], 2
jne 0x581bac
lea esi, [edi + 0x21c24]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x21c68], 0
je 0x581b8a
cmp byte [0x6a4060], 0
je 0x581b8a
cmp dword [edi + 0x21c6c], 0x10
lea eax, [edi + 0x21c58]
mov byte [0x6a4060], 0
jb 0x581b73
mov eax, dword [eax]
push 5
push 0
push 0x674dcc
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
movss xmm1, dword [0x676990]
lea ecx, [edi + 0x21c18]
movss xmm0, dword [0x676980]
call fcn.00581890
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 0x581d10
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc53b
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.00589b40
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.siamexe.exe
call fcn.0058ab10
add esp, 0xc
test al, al
jne 0x581d90
push str.failed1_n
call fcn.00589b40
add esp, 4
jmp 0x581da9
push dword [ebp - 0xc1c]
push dword [ebp - 0xc18]
push str._08x__d_n
call fcn.00589b40
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea ecx, [esi + 0x215f8]
call fcn.00588f20
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 0x581e53
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581df0
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 0x581e53
push dword [ebp - 0xc14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
call fcn.00597e40
add esp, 4
push eax
push 0xffffffffffffffff
call fcn.00597e40
add esp, 4
push eax
lea eax, [ebp - 0x410]
push str._08X_08X
push eax
call fcn.0057df30
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.00582800
add esp, 0x10
cmp dword [esi + 0x21c80], 0
jbe 0x581ec2
lea ecx, [ebp - 0xc10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581e85
sub ecx, edx
lea eax, [ebp - 0xc10]
add eax, ecx
cmp dword [esi + 0x21c84], 0x10
mov dword [ebp - 0xc14], eax
lea eax, [esi + 0x21c70]
jb 0x581ead
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc14]
push str.__survey___s_
push eax
call fcn.00582840
add esp, 0xc
push 5
push 0
lea eax, [ebp - 0xc10]
push eax
push str.siamexe.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x581ef2
push eax
push str.failed:__d_n
call fcn.00589b40
add esp, 8
mov eax, dword [0x6a82f8]
test eax, eax
je 0x581f01
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.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x582e20
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.005879b0
call fcn.00589f50
call fcn.00589590
call fcn.00589f50
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x20d84], 3
jne 0x582e67
mov dword [esi + 0x20d84], 5
cmp dword [esi + 0x20d88], 0
jne 0x582f11
mov edi, dword [esi + 0x21590]
mov eax, edi
mov ebx, dword [esi + 0x21594]
or eax, ebx
jne 0x582e8b
xorps xmm1, xmm1
jmp 0x582ed1
mov edx, dword [esi + 0x2159c]
mov ecx, dword [esi + 0x21598]
call fcn.005b6c1d
cvtsd2ss xmm0, xmm0
mov edx, ebx
mov ecx, edi
movss dword [ebp - 0x20c], xmm0
call fcn.005b6c1d
movss xmm1, dword [ebp - 0x20c]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x676968]
comiss xmm1, xmm0
jbe 0x582ed1
movaps xmm1, xmm0
mulss xmm1, dword [0x676984]
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.00582820
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
jmp 0x582e42
mov ecx, esi
call fcn.00587af0
mov eax, dword [esi + 0x20d88]
dec eax
je 0x582f55
dec eax
je 0x582f3f
dec eax
je 0x582f62
push 0
push 0x37
push str.Main_CmdLine.cpp
push 0x674d64
call fcn.0058a010
add esp, 0x10
jmp 0x582f62
lea eax, [esi + 0x2118d]
push eax
push str.Update_error_n_s_n_nPlease_retry_later
call fcn.00589b40
add esp, 8
jmp 0x582f62
push str.Update_ok_n
call fcn.00589b40
add esp, 4
push str._nPress_enter_to_exit...
call fcn.00589b40
add esp, 4
call fcn.005b0a03
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x583630
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.005af9d0
add esp, 8
test eax, eax
jne 0x5836a7
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s.new.exe
push eax
call fcn.0057df10
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.005aec53
mov esp, ebp
pop ebp
ret
push edi
push str..exe_updated__moving_back_n
mov byte [0x74db42], 1
call fcn.00589b40
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.005af4ed
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5836f0
sub ecx, edx
cmp ecx, 8
ja 0x583714
push 0
push 0x31
push str.SelfUpdateEXE.cpp
push str.strlen_exeMain____8
call fcn.0058a010
add esp, 0x10
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x583720
sub ecx, edx
add ecx, 0xfffffff8
cmp ecx, 0x104
jae 0x583831
push ebx
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x108]
push esi
push eax
push str.exeMain:__s_n
call fcn.00589b40
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 0x58381e
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x58381e
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x583760
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.0057df30
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 0x674d9c
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.005aec53
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.005aec53
mov esp, ebp
pop ebp
ret
call fcn.005afff7
int3
Function at 0x583840
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.00589b40
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push str._s.new.exe
push eax
call fcn.0057df10
lea eax, [ebp - 0x108]
push 0x6749dc
push eax
call fcn.005af96b
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x5838be
lea eax, [ebp - 0x108]
push eax
push str.cant_open__s_for_writing_n
call fcn.00589760
add esp, 8
push esi
push 1
push edi
push ebx
call fcn.005b0b83
push esi
call fcn.005af345
add esp, 0x14
push dword [0x74dbe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push str.executing__s_n
call fcn.00589b40
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 0x58392b
push eax
lea eax, [ebp - 0x108]
push eax
push str.failed_to_launch__s___d
call fcn.00589760
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.005aec53
mov esp, ebp
pop ebp
ret

Function at 0x583bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push eax
mov esi, ecx
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 dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x583c41
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
push esi
push 0
push 0
push str.username
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.00588e00
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret