joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb52058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb521a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb5207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb5206a
add dl, dl
jne 0xb52089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb520dc
xor eax, eax
add dl, dl
jne 0xb52096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb5217d
add dl, dl
jne 0xb520a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb520b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb520bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb520c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb520d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb52075
mov eax, 1
add dl, dl
jne 0xb520ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb520f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb520e1
sub eax, ebx
mov ebx, 1
jne 0xb52128
mov ecx, 1
add dl, dl
jne 0xb5210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb52119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb52105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb52075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb5213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb5214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb52136
cmp eax, 0x7d00
jae 0xb5216d
cmp eax, 0x500
jb 0xb52168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb52075
cmp eax, 0x7f
ja 0xb52170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb52075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb5219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb52075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401c20
Capabilities:
Copy file

Disassembly:
sub esp, 0x614
mov eax, dword [0x6ade1c]
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.0058e710
mov esi, eax
inc esi
add esp, 8
cmp esi, 1
jne 0x401c7b
push 0
push 0x14
push str..GenerateUpdaterXML.cpp
push str._DWORD_fname___1
call fcn.00568720
add esp, 0x10
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.00569130
add esp, 0xc
test al, al
jne 0x401cae
lea edx, [esp + 0x114]
push edx
push str.failed_to_get_crc_for__s_n
call fcn.005685e0
add esp, 8
push str.1.0.6
push esi
lea eax, [esp + 0x18]
push str._s__s.exe
push eax
call fcn.00401db0
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401ceb
lea edx, [esp + 0x10]
push edx
push esi
push str.unable_to_copy__s___s_n
call fcn.005685e0
add esp, 0xc
push 0x2f
push str.http:__103.253.73.36_GHO_API_CBT_updater_gho_lc.xml
call fcn.0058e710
mov esi, eax
add esp, 8
test esi, esi
jne 0x401d15
push eax
push 0x21
push str..GenerateUpdaterXML.cpp
push str.updater_file
call fcn.00568720
add esp, 0x10
lea edi, [esi + 1]
push 0x680394
push edi
call fcn.00569640
mov esi, eax
push str._p__n
push esi
call fcn.0058e73d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push str.1.0.6
push ecx
lea edx, [esp + 0x2c]
push edx
push str.http:__103.253.73.36_GHO_API_CBT_updater_
push str.__u_url__s_s__crc__u__ver__s__size__u____n
push esi
call fcn.0058e73d
push str.__p__n
push esi
call fcn.0058e73d
push esi
call fcn.0058e8d0
lea eax, [esp + 0x48]
push eax
push edi
lea ecx, [esp + 0x258]
push str.XML__s_generated_nnew_exe:_s
push ecx
call fcn.00401dd0
add esp, 0x48
push 0
push str.Updater_XML
lea edx, [esp + 0x220]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x618]
pop edi
pop esi
xor ecx, esp
call fcn.0058e447
add esp, 0x614
ret
Function at 0x403c40
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x5dd3fe
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x6ade1c]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push esi
push edi
mov eax, dword [0x6ade1c]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
cmp byte [0x759cdc], 0
je 0x403cc8
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call fcn.0058fa12
add eax, 0x20
push eax
push 0x68077c
push 0x680a44
call fcn.0058f9ec
call fcn.0058fa12
push eax
push 0x680a4c
push str.CONIN_
call fcn.0058f9ec
add esp, 0x18
mov dword [0x6b4c58], 1
jmp 0x403e3d
call fcn.004025a0
mov eax, dword [0x6b4bd8]
push 5
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [0x6b4bdc]
push eax
push 0
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x6b4bdc]
push 0x800000
push 0
push edx
call fcn.00567bb0
mov eax, dword [0x6b4bdc]
push 0xc00000
push 0
push eax
call fcn.00567bb0
mov ecx, dword [0x6b4bdc]
add esp, 0x18
push 0x403ab0
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.005722a0
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 - 0x400]
cdq
sub eax, edx
mov ecx, eax
push 0
lea eax, [esi - 0x294]
cdq
push 0x294
sub eax, edx
mov edx, dword [0x6b4bdc]
push 0x400
sar eax, 1
push eax
sar ecx, 1
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x102660
call fcn.0056a340
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x220], 0
test eax, eax
je 0x403db6
mov ecx, eax
call fcn.0056fc00
jmp 0x403db8
xor eax, eax
mov dword [esp + 0x220], 0xffffffff
mov ecx, dword [0x6b4bdc]
push 0
push ecx
mov ecx, eax
mov dword [0x6b4c44], eax
call fcn.0056b4b0
call fcn.004030b0
push str.Jul_15_2024_06:28:48
push str.1.0.6
lea edx, [esp + 0x1c]
push str.GhostOnlineTH_MMO_RPG_Launcher__s___s_
push edx
call fcn.00405aa0
mov ecx, dword [0x6b4bdc]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00403450
mov edx, dword [0x6b4bdc]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
mov ecx, dword [0x6b4c4c]
call fcn.00575ac0
mov ecx, dword [0x6b4c48]
call fcn.00575d00
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.0058e447
add esp, 0x214
ret
Function at 0x405050
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dd3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x6ade1c]
xor eax, esp
mov dword [esp + 0x840], eax
push esi
push edi
mov eax, dword [0x6ade1c]
xor eax, esp
push eax
lea eax, [esp + 0x854]
mov dword fs:[0], eax
mov dword [0x759a20], 1
mov dword [0x759a2c], 0x3ffadb19
call fcn.00404de0
mov edi, 0x148cf713
lea esi, [esp + 0x1f]
call fcn.00405b80
push eax
call fcn.00404f30
cmp eax, dword [0x759a2c]
je 0x4050c3
call fcn.00404fe0
mov eax, dword [esp + 0x864]
cmp dword [eax + 0x20dd0], 0
je 0x4050e1
call fcn.004012e0
cmp eax, 1
jne 0x405190
push str.Starting_game_n
call fcn.00568410
inc dword [0x6b4c80]
add esp, 4
push 6
push 0
mov dword [esp + 0x864], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.Game.exe
call fcn.00569130
add esp, 0xc
test al, al
jne 0x405133
push str.failed1_n
call fcn.00568410
add esp, 4
jmp 0x40514a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push str._08x__d_n
call fcn.00568410
add esp, 0xc
mov edi, 0x148cf74b
lea esi, [esp + 0x2c]
call fcn.00405bc0
push eax
lea edx, [esp + 0x50]
push edx
call fcn.00405a80
add esp, 8
push 5
push 0
lea eax, [esp + 0x54]
push eax
push str.Game.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [0x6b4c80], 0
je 0x405190
dec dword [0x6b4c80]
mov ecx, dword [esp + 0x854]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0058e447
add esp, 0x854
ret
Function at 0x4025d0
Capabilities:
Create http request
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fe80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x457c70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
test esi, esi
jne 0x40263c
push 0x10
push str.Error
push str.Callback_pointer_is_null
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 0x10], edi
cmp edi, 0xffffffff
jne 0x40267d
push 0x44ecb8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.Failed_to_create_file
push eax
call fcn.0041d151
push 0x2454
call fcn.0041d07a
add esp, 4
test eax, eax
je 0x40269d
push dword [ebp + 0x14]
mov ecx, eax
push esi
call fcn.00402560
mov esi, eax
jmp 0x40269f
xor esi, esi
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
lea eax, [esi + 0x18]
push 0x104
push eax
mov dword [ebp - 0x14], esi
mov dword [esi + 0x14], edi
call fcn.0041d0f5
add esp, 0xc
push 0x10000000
push 0
push 0
push 0
push str.UniKey_Downloader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4026f4
push 0x44ecb8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], str.InternetOpen_returned_NULL
push eax
call fcn.0041d151
push 0x4025b0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x40271a
push 0x44ecb8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], str.Failed_to_setup_callback
push eax
call fcn.0041d151
push str.InternetOpenUrl
lea eax, [esi + 0x224c]
push 0x100
push eax
call fcn.0041d0f5
add esp, 0xc
push esi
push 0
push 0
push 0
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x4027c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4027c4
push 0x44ecb8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.Failed_to_connect
push eax
call fcn.0041d151
push 0x10
push str.Error
push dword [ebp - 0x30]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x402796
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4027a4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4027bb
push eax
call fcn.0041d0f0
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, 0x4027c1
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4027e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004027f0
Function at 0x4027f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40280a
push 0
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402816
push 0
push eax
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x402826
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402830
push eax
call edi
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x40283f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x220], 1
jne 0x402882
mov ecx, dword [esi + 0x2450]
test ecx, ecx
jne 0x402856
xor eax, eax
jmp 0x402861
imul eax, dword [esi + 0x244c], 0x64
xor edx, edx
div ecx
push dword [esi + 4]
push eax
mov eax, dword [esi]
push 1
push str.Success
call eax
add esp, 0x10
push esi
call fcn.0041d0f0
add esp, 4
pop edi
pop esi
pop ebp
ret 4
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0041d0f0
add esp, 4
pop edi
pop esi
pop ebp
ret 4

Function at 0x402f30
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.InternetReadFileEx
push 0x100
lea eax, [esi + 0x224c]
mov dword [ebp - 4], ecx
push eax
call fcn.0041d0f5
mov ebx, dword [sym.imp.WININET.dll_InternetReadFileExW]
lea edi, [esi + 0x224]
add esp, 0xc
lea eax, [esi + 0x24c]
xorps xmm0, xmm0
movdqu xmmword [edi], xmm0
push esi
movdqu xmmword [edi + 0x10], xmm0
push 1
movq qword [edi + 0x20], xmm0
push edi
push dword [esi + 0x10]
mov dword [edi], 0x28
mov dword [esi + 0x23c], 0x2000
mov dword [esi + 0x238], eax
call ebx
test eax, eax
je 0x402fc3
lea esp, [esp]
cmp dword [esi + 0x23c], 0
je 0x402fe8
mov ecx, dword [ebp - 4]
push esi
call fcn.004030b0
test al, al
je 0x40301a
push esi
push 1
push edi
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x402fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x402ff2
mov ecx, dword [esi + 0x2450]
mov dword [esi + 0x220], 2
test ecx, ecx
jne 0x402ffd
xor eax, eax
jmp 0x403008
mov dword [esi + 0x220], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
imul eax, dword [esi + 0x244c], 0x64
xor edx, edx
div ecx
push dword [esi + 4]
push eax
mov eax, dword [esi]
push 2
push str.Download_failed
call eax
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403030
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0x20000013
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40306f
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0xc8
jne 0x403066
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000005
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov dword [esi + 0x2450], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4030b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push 0
push eax
push dword [esi + 0x23c]
lea eax, [esi + 0x24c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x2450]
test eax, eax
jne 0x40310f
mov dword [esi + 0x220], 2
test ecx, ecx
je 0x4030f6
imul eax, dword [esi + 0x244c], 0x64
xor edx, edx
div ecx
push dword [esi + 4]
push eax
mov eax, dword [esi]
push 2
push str.Failed_writing_to_file
call eax
add esp, 0x10
xor al, al
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
add dword [esi + 0x244c], eax
mov eax, dword [esi + 0x244c]
test ecx, ecx
jne 0x403126
xor eax, eax
jmp 0x40312d
imul eax, eax, 0x64
xor edx, edx
div ecx
push dword [esi + 4]
push eax
push dword [esi + 0x220]
mov eax, dword [esi]
push str.RECEIVING...
call eax
add esp, 0x10
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x403610
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx - 0x124]
lea ecx, [ebx - 0x124]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.0043b1e0
mov eax, dword [ebx - 0x124]
push dword [ebx - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [eax + 4]
push dword [eax + ebx - 0x120]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx - 0x124]
push dword [ebx - 4]
mov eax, dword [eax + 4]
push dword [eax + ebx - 0x120]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx - 0x124]
push dword [ebx - 0x1c]
mov eax, dword [eax + 4]
push dword [eax + ebx - 0x120]
call edi
cmp dword [ebx - 0xc], 0
lea ecx, [ebx - 0xa0]
jne 0x403693
lea ecx, [ebx - 0x120]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov dword [ebx - 8], 0
mov eax, 1
pop ebx
ret

Function at 0x4050b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [esi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jl 0x4051c2
push ebx
mov bx, word [ebp - 0x24]
mov eax, 0xff
cmp bx, ax
ja 0x4051c1
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push dword [esi + 0x1c0]
call edi
cmp eax, 0xffffffff
je 0x4051c0
push 0
push eax
push 0x150
push dword [esi + 0x1c0]
call edi
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x12c], eax
mov ecx, dword [eax + 0x452424]
mov dword [ebp - 0x128], ecx
cmp ecx, 0x14
jge 0x405156
movzx eax, bl
push eax
call fcn.0041d5bf
mov bl, al
add esp, 4
mov eax, dword [ebp - 0x12c]
mov ecx, dword [esi + 0xf58]
mov edx, dword [ebp - 0x128]
mov byte [esi + ecx*8 + 0x758], bl
mov ecx, dword [esi + 0xf58]
mov dword [esi + ecx*8 + 0x75c], edx
inc dword [esi + 0xf58]
push dword [eax + 0x452428]
movzx eax, bl
push eax
lea eax, [ebp - 0x124]
push str.___c_t_s
push eax
call fcn.0041d8c8
add esp, 0x10
lea eax, [ebp - 0x124]
push 0
push eax
push 0
push 0x180
push dword [esi + 0x1b8]
call edi
push eax
push 0x186
push dword [esi + 0x1b8]
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x405b70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [edi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jge 0x405bc5
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x1cc]
call esi
push 0
push dword [edi + 0x3fc]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00404f40
xor ecx, ecx
mov esi, eax
cmp esi, 0xffffffff
sete cl
push ecx
push dword [edi + 0x1cc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, 0xffffffff
je 0x405c06
push 0
push esi
push 0x186
push dword [edi + 0x1b8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.00406520
push 0
push 0
push 0x188
push dword [edi + 0x1b8]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push dword [edi + 0x3fc]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret

Function at 0x405ec0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [ebp - 0x24]
push 2
push eax
push dword [edi + 0x548]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jl 0x40602d
push ebx
mov bx, word [ebp - 0x24]
mov eax, 0xff
cmp bx, ax
ja 0x40602c
push esi
movzx esi, bl
push esi
call fcn.0041d5bf
push esi
mov byte [ebp - 0x125], al
call fcn.0041d72e
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 8
mov byte [ebp - 0x134], al
push 0
push 0
push 0x147
push dword [edi + 0x1c0]
call esi
cmp eax, 0xffffffff
je 0x40602b
push 0
push eax
push 0x150
push dword [edi + 0x1c0]
call esi
push 0
push 0
push 0x188
push dword [edi + 0x1b8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x12c], eax
mov eax, dword [eax + 0x452424]
mov dword [ebp - 0x130], eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x40602b
mov eax, dword [ebp - 0x130]
cmp eax, 0x14
movzx ecx, byte [ebp - 0x125]
mov dword [edi + esi*8 + 0x75c], eax
mov eax, dword [ebp - 0x12c]
movzx edx, bl
cmovl edx, ecx
mov byte [edi + esi*8 + 0x758], dl
push dword [eax + 0x452428]
movzx eax, dl
push eax
lea eax, [ebp - 0x124]
push str.___c_t_s
push eax
call fcn.0041d8c8
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x124]
add esp, 0x10
push eax
push esi
push 0x181
push dword [edi + 0x1b8]
call ebx
push 0
lea eax, [esi + 1]
push eax
push 0x182
push dword [edi + 0x1b8]
call ebx
push 0
push esi
push 0x186
push dword [edi + 0x1b8]
call ebx
push dword [ebp - 0x134]
mov ecx, edi
call fcn.00404f40
cmp eax, 0xffffffff
je 0x40602b
cmp eax, esi
je 0x40602b
push eax
mov ecx, edi
call fcn.00404e40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x407090
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x828]
mov ebx, ecx
push 0x400
push eax
push dword [ebx + 0x1b8]
call esi
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x3b0]
call esi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x1b4]
call fcn.004069e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x407150
push 0
push eax
push 0x182
push dword [ebx + 0x1b4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [ebx + 0x214]
call esi
push 0
mov ecx, ebx
call fcn.004079c0
xor eax, eax
cmp word [ebp - 0x828], ax
setne al
push eax
push dword [ebx + 0x1c4]
call esi
push dword [ebx + 0x3b0]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [ebx + 0x3b0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret

Function at 0x407160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0041d450
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x28]
push edi
mov edi, ecx
push 0x10
push eax
push dword [edi + 0x3b0]
call esi
push 0x400
lea eax, [ebp - 0x828]
push eax
push dword [edi + 0x1b8]
call esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x104c]
push str._s_t_s
push eax
call fcn.0041d8c8
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x1b4]
call fcn.004069e0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4071f4
push 0
push eax
push 0x182
push dword [edi + 0x1b4]
call ebx
push 0
lea eax, [ebp - 0x104c]
push eax
push 0
push 0x180
push dword [edi + 0x1b4]
call ebx
push eax
push 0x186
push dword [edi + 0x1b4]
call ebx
push 1
mov ecx, edi
call fcn.004079c0
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x1c4]
call esi
push 1
push dword [edi + 0x214]
call esi
push dword [edi + 0x3b0]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [edi + 0x3b0]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret