joyce8/EMBER2024-capa huggingface dataset:
Function at 0x570700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 8]
mov dword [esi], eax
mov edx, dword [ecx]
mov dword [esi + 4], edx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x78]
mov dword [esi + 8], eax
xor ecx, ecx
mov edx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x16c]
neg eax
sbb eax, eax
and eax, 2
mov dword [esi + 0x20], eax
cmp dword [edi + 0x1bc], 2
mov eax, 0x1a
je 0x570759
mov eax, dword [edi + 0x1c0]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x1a
mov eax, dword [edi + 0x174]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
cmp dword [edi + 0x168], ecx
setne al
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x40], eax
sub eax, ecx
je 0x5708a4
sub eax, edx
je 0x57086d
sub eax, edx
jne 0x5708bb
push ebx
push ebp
lea ebp, [edi + 0x8c]
push 4
push ebp
call fcn.0056f3c0
lea ebx, [edi + 0x9c]
push 4
push ebx
call fcn.0056f3c0
lea eax, [edi + 0xac]
push 4
push eax
mov dword [esp + 0x2c], eax
call fcn.0056f3c0
lea eax, [edi + 0xbc]
push 4
push eax
mov dword [esp + 0x38], eax
call fcn.0056f3c0
lea eax, [edi + 0xcc]
push 8
push eax
mov dword [esp + 0x48], eax
call fcn.0056f3c0
add edi, 0x10c
push 8
push edi
call fcn.0056f3c0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 0x30
lea eax, [esi + 0x44]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], ebp
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ecx
pop ebp
mov dword [esi + 0x50], edx
mov dword [esi + 0x58], edi
xor ecx, ecx
mov esi, eax
pop ebx
nop
xor edx, edx
xor eax, eax
cmp ecx, 4
setge dl
sub edx, 1
and edx, 0xffffffd0
add edx, 0x40
test edx, edx
jle 0x57085f
mov edi, dword [esi]
cmp byte [eax + edi], 0
jne 0x570858
mov edi, dword [ecx*4 + 0x5e6670]
mov dword [esi], edi
add eax, 1
cmp eax, edx
jl 0x570847
add ecx, 1
add esi, 4
cmp ecx, 6
jl 0x570830
pop edi
pop esi
ret
mov edx, dword [0x5e6670]
mov dword [esi + 0x44], edx
mov eax, dword [0x5e6674]
mov dword [esi + 0x48], eax
mov ecx, dword [0x5e6678]
mov dword [esi + 0x4c], ecx
mov edx, dword [0x5e667c]
mov dword [esi + 0x50], edx
mov eax, dword [0x5e6680]
mov dword [esi + 0x54], eax
mov ecx, dword [0x5e6684]
pop edi
mov dword [esi + 0x58], ecx
pop esi
ret
mov eax, 0x5e6630
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
pop edi
pop esi
ret
Function at 0x579a70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x10]
and ecx, 0xff
cmp ecx, 1
mov dword [esp + 8], ecx
je 0x579aab
cmp ecx, 4
je 0x579aab
mov eax, dword [esp + 0x10]
push str.Arg_invalid_CSP_n
push 0
push eax
call fcn.0056e800
add esp, 0xc
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
mov edx, dword [edi + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [edi + 0xc]
push esi
mov dword [eax + 0x14], edx
xor esi, esi
add eax, 0x60
mov dword [esp + 0x10], eax
jmp 0x579ae4
mov ecx, dword [esp + 0x14]
cmp ecx, 4
jne 0x579af4
test esi, esi
je 0x579af4
mov eax, esi
xor eax, 3
jmp 0x579af6
mov eax, esi
mov ecx, dword [edi + eax*4 + 0x28]
mov ebx, dword [edi + eax*4 + 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
xor ecx, ecx
test esi, esi
setne cl
sar edx, cl
sar eax, cl
test dword [edi + 0x10], 0x1000
je 0x579b2c
mov ebp, dword [esp + 0x1c]
lea ecx, [eax - 1]
imul ecx, ebx
add dword [esp + 0x24], ecx
neg ebx
push eax
push edx
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0x30]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp + 0x4d20]
push eax
push ecx
call edx
add esi, 1
add ebx, 4
add esp, 0x18
cmp esi, 3
mov dword [esp + 0x10], ebx
jl 0x579ae0
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret
Function at 0x5b6150
Capabilities:
Encode data using xor

Disassembly:
push esi
add eax, 0xffffffff
xor esi, esi
test eax, eax
jle 0x5b618f
push ebx
push edi
add ecx, 2
mov edi, eax
movsx edx, word [ecx + 2]
movsx eax, word [ecx - 2]
sub eax, edx
cdq
mov ebx, eax
movsx eax, word [ecx]
xor ebx, edx
sub ebx, edx
movsx edx, word [ecx + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add eax, esi
add ecx, 4
sub edi, 1
lea esi, [eax + ebx]
jne 0x5b6161
pop edi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x5c8352
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004fd448
xor ebx, ebx
cmp dword [0x632198], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x5c8427
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x5c8392
xor eax, eax
jmp 0x5c84eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x5c838b
push eax
call fcn.004fd3e5
mov dword [esp], 0x5ddf74
push edi
mov dword [0x632198], eax
call esi
push eax
call fcn.004fd3e5
mov dword [esp], 0x5ddf60
push edi
mov dword [0x63219c], eax
call esi
push eax
call fcn.004fd3e5
mov dword [0x6321a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004f76a6
test eax, eax
pop ecx
pop ecx
je 0x5c83f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004f3feb
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x5c8427
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.004fd3e5
cmp eax, ebx
pop ecx
mov dword [0x6321a8], eax
je 0x5c8427
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004fd3e5
pop ecx
mov dword [0x6321a4], eax
mov eax, dword [0x6321a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x5c84a0
cmp dword [0x6321a8], esi
je 0x5c84a0
push eax
call fcn.004fd451
pop ecx
call eax
cmp eax, ebx
je 0x5c846d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x6321a8]
call fcn.004fd451
pop ecx
call eax
test eax, eax
je 0x5c846d
test byte [ebp - 0x18], 1
jne 0x5c84a0
lea eax, [ebp - 0xc]
push eax
call fcn.004f76dd
test eax, eax
pop ecx
je 0x5c8488
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004f3feb
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x5c8497
or dword [ebp + 0x10], 0x200000
jmp 0x5c84d1
or dword [ebp + 0x10], 0x40000
jmp 0x5c84d1
mov eax, dword [0x63219c]
cmp eax, esi
je 0x5c84d1
push eax
call fcn.004fd451
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5c84d1
mov eax, dword [0x6321a0]
cmp eax, esi
je 0x5c84d1
push dword [ebp - 4]
push eax
call fcn.004fd451
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x632198]
call fcn.004fd451
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a076
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4233f0]
and word [ebp - 0x7c], 0
and dword [ebp - 0x80], 0
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x198]
push edi
mov dword [ebp + 0x18c], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40a0d2
push 0x41a4e8
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x40a117
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Xunlei
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a0ff
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x41a974
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
pop esi
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00415151
add ebp, 0x190
leave
ret

Function at 0x40a1b2
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x40a1f6
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x40a189
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 0xc], bl
mov dword [esi + 8], eax
jne 0x40a1f6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
ret 4
Function at 0x416c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4238e4], eax
je 0x416c4c
mov eax, 0x10dd
jmp 0x416d28
mov eax, dword [0x4238e8]
test eax, eax
jne 0x416d28
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x416c69
push 6
pop eax
jmp 0x416d27
cmp dword [edi], 0
push ebx
push esi
jne 0x416c7d
push 6
pop eax
mov dword [0x4238e8], eax
jmp 0x416d1f
push 0x18
call fcn.00415062
mov esi, eax
test esi, esi
pop ecx
jne 0x416c90
push 8
pop edi
jmp 0x416d09
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0041661c
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x416cfe
cmp ecx, 0x17
ja 0x416cfe
cmp dword [edi + 0x1c], eax
jne 0x416cfe
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x416cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x416d09
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4238f4]
mov dword [esi], eax
mov dword [0x4238f4], esi
xor eax, eax
jmp 0x416d25
cmp dword [0x4238e0], edx
push 9
pop edi
jne 0x416d0f
mov dword [0x4238e8], edi
test esi, esi
je 0x416d1a
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4238ec], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x4018d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x228
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push edi
push 1
push esi
mov edi, ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x401910
test byte [edi + 0x60], 2
je 0x40190b
mov eax, dword [edi + 0x54]
jmp 0x401918
mov eax, dword [edi + 0x50]
jmp 0x401918
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
push eax
push esi
call ebp
mov ecx, dword [edi + 0x5c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
mov dword [esp + 0x2c], eax
call ebx
push 0xff
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
xor ecx, ecx
test al, 1
je 0x401961
mov ecx, 1
jmp 0x40196a
test al, 2
je 0x40196a
mov ecx, 2
or ecx, 0x10
push ecx
lea eax, [edi + 0x40]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi + 4]
jne 0x401996
lea eax, [edi + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov edx, dword [esp + 0x24]
push edx
push esi
call ebp
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
cmp dword [edi + 0x206c], 0
je 0x401a29
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x1845f7
push 2
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
push edi
push esi
call ebx
push 5
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call ebx
push ebp
push esi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x22c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fe05a
add esp, 0x228
ret
Function at 0x401a60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x228
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esi + 4]
push ebx
push ebp
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x401a9f
xor al, al
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004fe05a
add esp, 0x228
ret
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [esi + 0x60], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ebp, [esi + 0x40]
mov dword [ebp], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
je 0x401b9b
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esi + 0x5c]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], eax
push 0xff
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov ecx, eax
mov ebx, ecx
xor eax, eax
and ebx, 1
mov dword [esp + 0x20], ecx
je 0x401b3b
mov eax, 1
jmp 0x401b45
test cl, 2
je 0x401b45
mov eax, 2
or eax, 0x410
push eax
push ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
je 0x401b78
mov eax, dword [esp + 0x18]
sub eax, dword [esi + 0x48]
cdq
sub eax, edx
sar eax, 1
jmp 0x401b86
test byte [esp + 0x20], 2
je 0x401b90
mov eax, dword [esp + 0x18]
sub eax, dword [esi + 0x48]
push 0
push eax
push ebp
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x22c]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.004fe05a
add esp, 0x228
ret
Function at 0x405470
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp eax, 0x101
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ecx
mov ebx, edx
mov dword [edi], 0
jne 0x4054c2
mov eax, dword [esi + 0x1e0]
cmp eax, ebx
je 0x4054ba
mov ecx, dword [esi + 0x550]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push 0
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push ebx
mov dword [esi + 0x1e0], ebx
call fcn.004059a0
mov dword [edi], 1
jmp 0x4054ea
cmp eax, 0x102
jne 0x405503
sub ebx, 0
je 0x4054e4
sub ebx, 1
je 0x4054db
mov dword [edi], 0
jmp 0x4054ea
mov ecx, esi
call fcn.004057c0
jmp 0x4054ea
push esi
call fcn.00405510
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push 1
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4

Function at 0x4056a0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi + 0x550]
mov ecx, dword [esi + 0x1e0]
mov ecx, dword [edx + ecx*4]
mov dword [eax], 1
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 3
mov dword [esi + 0x1e0], 3
call fcn.004059a0
mov eax, dword [esi + 0x1e0]
test eax, eax
jl 0x4056fc
cmp eax, dword [esi + 0x41c]
jge 0x4056fc
cmp dword [esi + 0x43c], 0
je 0x4056fc
mov dword [esi + 0x420], eax
mov eax, dword [esi + 0x3f4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
ret

Function at 0x405720
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi + 0x550]
mov ecx, dword [esi + 0x1e0]
mov ecx, dword [edx + ecx*4]
mov dword [eax], 1
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 2
mov dword [esi + 0x1e0], 2
call fcn.004059a0
mov eax, dword [esi + 0x1e0]
test eax, eax
jl 0x40577c
cmp eax, dword [esi + 0x41c]
jge 0x40577c
cmp dword [esi + 0x43c], 0
je 0x40577c
mov dword [esi + 0x420], eax
mov eax, dword [esi + 0x1e0]
mov ecx, dword [esi + 0x550]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push 0
push 0
push 0xbdb
call eax
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x3f4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
ret
Function at 0x405d40
Capabilities:
Print debug messages

Disassembly:
push ebx
push edi
push str.select_first_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, 5
cmp dword [esi + 0x6e0], ebx
jge 0x405d73
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
add dword [esi + 0x6e0], 1
cmp dword [esi + 0x6e0], ebx
jl 0x405d60
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
push 0x4b8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov edi, eax
push 0x18b
push edi
call ebx
cmp eax, 1
jle 0x405dba
push 0
push 0
push 0x186
push edi
call ebx
push 0
push 1
mov edx, edi
mov ecx, esi
call fcn.00403310
mov eax, dword [esi + 0x6dc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0x6dc], 0
pop ebx
ret

Function at 0x405ed0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x210
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
test esi, esi
push edi
mov edi, dword [esp + 0x228]
mov ebx, ecx
mov dword [esp + 0xc], edi
jne 0x405f06
xor eax, eax
jmp 0x406067
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebp
mov ecx, esi
call edx
push 0x206
mov ebp, eax
lea eax, [esp + 0x1a]
push 0
push eax
mov word [esp + 0x20], 0
call fcn.005002f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test al, 0x20
je 0x405fd3
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xf
cmp al, 7
jne 0x405f7f
lea ecx, [esp + 0x14]
push ecx
lea edx, [ebx + 0x5a6]
push 0x80
push edx
mov byte [ebx + 0x5a4], 1
call fcn.004fe07f
add esp, 0xc
push 0
push 0x5ac440
push 0x5ac41c
push 0
push esi
call fcn.004fd7a9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
add esp, 0x14
call eax
mov edi, eax
xor esi, esi
cmp dword [edi + 4], esi
jle 0x406061
mov ebp, dword [esp + 0x228]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + esi*4]
push ecx
push ebp
push eax
mov ecx, ebx
call fcn.00405ed0
add esi, 1
cmp esi, dword [edi + 4]
jl 0x405fb3
jmp 0x406061
push edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406061
push 0x108
call fcn.004fde48
mov esi, eax
mov eax, dword [esp + 0x22c]
add esp, 4
lea ecx, [ebx + 0x3f0]
mov dword [esp + 0x10], esi
mov dword [esi], eax
lea edi, [esi + 8]
call fcn.0043eb90
push eax
push 0x80
push edi
call fcn.004fe07f
add esp, 0xc
cmp byte [ebx + 0x5a4], 0
je 0x40604e
push 0x54bc68
push 0x80
push edi
call fcn.004fe162
lea edx, [ebx + 0x5a6]
push edx
push 0x80
push edi
call fcn.004fe162
add esp, 0x18
lea eax, [esp + 0x10]
mov dword [esi + 4], ebp
push eax
lea esi, [ebx + 0x56c]
call fcn.00480c20
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fe05a
add esp, 0x210
ret 0xc
Function at 0x406090
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push ebp
push esi
push edi
mov ecx, ebx
call edx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4b8
push eax
call esi
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
mov ecx, ebx
call edx
push 0x505
push eax
call esi
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [esp + 0x34], eax
je 0x40613e
lea ecx, [ebx + 0x3f0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x2c]
sub eax, 1
push eax
lea esi, [esp + 0x14]
mov edi, ecx
call fcn.0043ebc0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 6
push ecx
push edx
push 0
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0x6bc]
mov edx, dword [eax + 8]
lea ecx, [ebx + 0x6bc]
push 0xffffffffffffffff
push ebp
call edx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebp
call esi
mov eax, dword [esp + 0xc]
push 0
push eax
call esi
pop edi
pop esi
pop ebp
add esp, 0x24
ret 4
lea esi, [ebx + 0x6bc]
call fcn.004095a0
mov ecx, dword [ebx + 0x6b8]
mov edi, dword [ebx + 0x6ac]
lea esi, [ebx + 0x6a8]
mov dword [esp + 0x34], ecx
call fcn.004095a0
test eax, eax
je 0x406212
mov edx, dword [esp + 0x34]
cmp edx, dword [ebx + 0x1e0]
jne 0x406212
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push edi
call esi
mov edx, dword [ebx + 0x550]
mov ecx, dword [ebx + 0x1e0]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov ecx, dword [edx + ecx*4]
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx + 0x14]
call eax
push eax
call esi
mov eax, dword [esp + 0x20]
sub dword [esp + 0x18], eax
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], ecx
sub dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x550]
or edx, 0xffffffff
sub edx, eax
add dword [esp + 0x14], edx
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
push 1
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 0x14]
call edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebp
call esi
mov eax, dword [esp + 0xc]
push 5
push eax
call esi
pop edi
pop esi
pop ebp
add esp, 0x24
ret 4