joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540360
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x5403c9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0053bb60
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x5403d0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5403f8
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x54041a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x540870
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5408c0
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x5408b5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.005422c0
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x5408d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x540953
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x540953
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x540946
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x540970
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x5409b1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x5409b1.2
jmp dword [eax*4 + 0x540a3c]
mov word [esp + 0x48], di
jmp 0x5409ea
mov word [esp + 0x48], 2
jmp 0x5409ea
mov word [esp + 0x48], 3
jmp 0x5409ea
mov word [esp + 0x48], 4
jmp 0x5409ea
mov word [esp + 0x48], 7
jmp 0x5409ea
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x540a34
cmp dword [esp + 0x70], edi
je 0x540a20
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x540e10
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x540e1e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.005434b0
add esp, 4
test eax, eax
jne 0x540e30
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x540e4b
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x540e58
mov ecx, dword [esi + 4]
call fcn.005434a0
pop esi
ret

Function at 0x540f10
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x540f23
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.005434b0
add esp, 4
test eax, eax
jne 0x540f35
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x540f44
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x540f9b
mov ebx, dword [ebx + 4]
push edi
call fcn.00551bf6
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x540f7e
push ebp
call fcn.00551c1f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00542280
push ebp
mov esi, eax
call fcn.00551c1f
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x540fdd
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.0053bb60
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x540fda
push esi
call fcn.0053bbf0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5412e0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5412f6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x541300
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x541358
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.005412e0
add esp, 4
cmp eax, 0xffffffff
je 0x541353
push edi
push eax
call sub.WS2_32.dll_inet_ntoa
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.005422c0
add esp, 8
mov esi, eax
pop edi
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x5525d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x559884
call fcn.00547064
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00557d3c
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x552615
call fcn.00557d3c
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x552623
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x552631
or eax, 0xffffffff
jmp 0x552719
mov ecx, esi
call fcn.0055254c
mov dword [ebp - 0x14], eax
call fcn.005535bf
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x552668
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x552668
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00553573
push dword [ebp - 0x14]
call fcn.005530a5
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.005522e4
cmp eax, edi
je 0x5526db
test byte [esi + 0x24], 0x10
je 0x5526a9
push 4
mov ecx, esi
pop ebx
call fcn.00552aa5
test ah, 1
je 0x5526a1
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.005550ca
cmp dword [esi + 0x1c], edi
je 0x5526db
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00552ad9
jmp 0x5526db
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x5526ef
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x552708
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x552708
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00552586
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x554f78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x554fba
call fcn.00557d3c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x554fba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x554fb1
xor eax, eax
jmp 0x554fc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00554fc8
pop edi
pop esi
pop ebx
ret 4

Function at 0x5582d2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x558300
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x55831e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00558238
jmp 0x55831e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x55831e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00558238
test edi, edi
mov eax, edi
jne 0x558308
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405d50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
mov edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
push edi
call edx
test al, al
jne 0x405d73
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov edi, eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
push eax
push edi
mov eax, 0x9234c8
call fcn.0044a3e0
push eax
push str._s__d____d
call fcn.00458200
mov ecx, dword [esi + 4]
mov ebp, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
add esp, 0x10
call edx
test al, al
je 0x405def
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
push edi
call edx
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
push eax
push edi
push ebx
mov eax, 0x9234c8
call fcn.0044a3e0
push eax
push str._s__s___d____d_
call fcn.00458200
add esp, 0x14
push ebp
mov edi, eax
call fcn.00658a01
add esp, 4
push ebx
mov ebp, edi
call fcn.00658a01
add esp, 4
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x405e27
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 3
push edi
shr eax, 0xf
not al
and al, 1
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.0043dca0
push ebp
call fcn.00658a01
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [edi + 4]
push ebp
push 0
push 0xc
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x9f4968]
mov byte [edi + 0x10], 0
cmp eax, 2
je 0x405e57
cmp eax, 0x17
je 0x405e57
cmp eax, 0x1f
je 0x405e57
cmp eax, 0x25
je 0x405e57
xor ebx, ebx
jmp 0x405e5c
mov ebx, 1
mov esi, dword [edi + 4]
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
test bl, bl
je 0x405e76
or ecx, 0x500000
jmp 0x405e7c
and ecx, 0xffafffff
cmp ecx, eax
je 0x405e8a
push ecx
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push ebp
mov ecx, edi
call fcn.00446830
mov edx, dword [edi + 4]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebp
call fcn.00658a01
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4070b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x407275
mov eax, dword [esi + 0x10c]
push 0
push 0
push 0x1304
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
cmp eax, ebx
je 0x4070fb
test eax, eax
jne 0x4070ed
cmp byte [ebp + 0xc], al
jne 0x4070fb
mov eax, esi
call fcn.00433a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x9f43ec], 0
mov edx, dword [0x9e8478]
je 0x40712b
xor eax, eax
test edx, edx
je 0x40712b
mov ecx, dword [0x9e8484]
cmp dword [ecx + eax*4], esi
je 0x407123
add eax, ebx
cmp eax, edx
jb 0x407116
jmp 0x40712b
test eax, eax
je 0x407275
cmp dword [esi + 0x370], 0
je 0x40716f
cmp byte [esi + 0x374], 0
jne 0x40716f
call fcn.00402910
or eax, 0x34
push eax
mov eax, str.Printing_in_progress.
call fcn.0044a3e0
push eax
mov eax, str.Printing_is_still_in_progress._Abort_and_quit_
call fcn.0044a3e0
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x407275
cmp dword [esi + 4], 0
je 0x4071d4
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
test eax, eax
je 0x40719f
cmp dword [esi + 4], 0
je 0x407198
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
mov byte [eax + 0x24], bl
jmp 0x4071d4
xor eax, eax
mov byte [eax + 0x24], bl
jmp 0x4071d4
cmp dword [esi + 4], 0
je 0x4071d4
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
test eax, eax
je 0x4071d4
cmp dword [esi + 4], 0
je 0x4071cb
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
jmp 0x4071cd
xor eax, eax
mov byte [eax + 0xb4], 0
cmp dword [esi + 0x328], 0
je 0x4071e4
mov ecx, esi
call fcn.0040a5c0
cmp dword [0x9e8478], ebx
sete al
mov byte [esp + 0xf], al
test al, al
je 0x40720e
cmp byte [ebp + 0xc], 0
je 0x407207
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00445cc0
jmp 0x407213
call fcn.004027b0
mov ebx, esi
call fcn.00433c20
cmp byte [esp + 0xf], 0
je 0x40723e
cmp byte [ebp + 0xc], 0
jne 0x40723e
push 0
push esi
call fcn.00406e00
mov edx, dword [esi + 8]
add esp, 8
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40724f
mov ebx, dword [esi + 8]
mov edi, esi
call fcn.00405260
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [esp + 0xf], 0
je 0x407275
cmp byte [ebp + 0xc], 0
je 0x40726b
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404e90
call fcn.00433e80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407280
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
test esi, esi
je 0x407438
mov bl, byte [esp + 0x1c]
test bl, bl
je 0x40729d
mov byte [esp + 0x18], 1
cmp dword [0x9f43ec], 0
mov edx, dword [0x9e8478]
je 0x4072d0
xor eax, eax
test edx, edx
je 0x4072d0
mov ecx, dword [0x9e8484]
cmp dword [ecx + eax*4], esi
je 0x4072c4
inc eax
cmp eax, edx
jb 0x4072b8
jmp 0x4072d0
test eax, eax
jne 0x4072d0
test bl, bl
je 0x407438
cmp dword [esi + 0x370], 0
je 0x407318
cmp byte [esi + 0x374], 0
jne 0x407318
test bl, bl
jne 0x407318
call fcn.00402910
or eax, 0x34
push eax
mov eax, str.Printing_in_progress.
call fcn.0044a3e0
push eax
mov eax, str.Printing_is_still_in_progress._Abort_and_quit_
call fcn.0044a3e0
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x407438
cmp dword [esi + 4], 0
je 0x40737f
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
test eax, eax
je 0x40734a
cmp dword [esi + 4], 0
je 0x407342
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
mov byte [eax + 0x24], 1
jmp 0x40737f
xor eax, eax
mov byte [eax + 0x24], 1
jmp 0x40737f
cmp dword [esi + 4], 0
je 0x40737f
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
test eax, eax
je 0x40737f
cmp dword [esi + 4], 0
je 0x407376
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
jmp 0x407378
xor eax, eax
mov byte [eax + 0xb4], 0
cmp dword [esi + 0x328], 0
je 0x40738f
mov ecx, esi
call fcn.0040a5c0
cmp dword [0x9e8478], 1
sete al
mov byte [esp + 0x13], al
test al, al
je 0x4073bf
cmp byte [esp + 0x18], 0
je 0x4073b8
test bl, bl
jne 0x4073b8
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00445cc0
jmp 0x4073c4
call fcn.004027b0
mov ebx, esi
call fcn.00433c20
cmp byte [esp + 0x1c], 0
je 0x4073db
mov edi, esi
call fcn.00405260
jmp 0x407411
cmp byte [esp + 0x13], 0
je 0x407400
cmp byte [esp + 0x18], 0
jne 0x407400
push 0
push esi
call fcn.00406e00
mov edx, dword [esi + 8]
add esp, 8
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x407411
mov ebx, dword [esi + 8]
mov edi, esi
call fcn.00405260
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [esp + 0x13], 0
je 0x407438
cmp byte [esp + 0x18], 0
je 0x40742e
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
add esp, 8
ret
call fcn.00404e90
call fcn.00433e80
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x409230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
push edi
xor edi, edi
cmp ebx, edi
je 0x409453
test byte [0x9e8474], 2
je 0x409453
cmp dword [0x9f43ec], edi
jne 0x409453
lea eax, [esp + 0x38]
push 0x40
mov ecx, eax
push edi
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x40], eax
call fcn.0065b340
add esp, 0xc
mov eax, ebx
call fcn.00455060
mov ebx, eax
mov eax, 0x6b8ff4
mov edx, ebx
call fcn.00455100
push ebx
mov dword [esp + 0x18], eax
call fcn.00658a01
mov ebx, dword [esp + 0x18]
add esp, 4
push edi
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.00454490
add esp, 4
test al, al
jne 0x4092ea
push ebx
call fcn.00658a01
add esp, 4
lea eax, [esp + 0x28]
call fcn.00401170
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
cmp eax, edi
jbe 0x409368
mov edx, dword [0x9f48bc]
movzx eax, byte [edx + 0x44]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add edi, edi
push eax
add edi, edi
mov esi, dword [edi + ecx - 4]
push 0
call fcn.00486260
add esp, 8
test al, al
jne 0x40935f
mov edx, dword [esp + 0x34]
mov eax, dword [edi + edx - 4]
push 0
call fcn.00440b20
add esp, 4
test al, al
jne 0x40935f
mov eax, dword [esp + 0x34]
mov edi, dword [edi + eax - 4]
xor ebx, ebx
call fcn.00401620
test eax, eax
jne 0x40935f
mov edx, dword [esp + 0x10]
dec edx
lea esi, [esp + 0x28]
call fcn.004124b0
push eax
call fcn.00658a01
add esp, 4
dec dword [esp + 0x10]
jne 0x4092f6
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
xor eax, eax
lea ecx, [esp + 0x28]
call fcn.004011a0
cmp eax, 0xffffffff
jne 0x4093a3
test ebx, ebx
je 0x40938d
push ebx
call fcn.00661039
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x409395
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x2c]
call fcn.0044f5d0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
push 0x401370
push 4
push edx
push eax
call fcn.00658b10
mov ebx, dword [esi]
add esp, 0x10
xor eax, eax
lea ecx, [esp + 0x28]
call fcn.004011a0
xor edx, edx
cmp byte [ebp + 0xc], dl
je 0x4093d7
inc eax
div dword [esp + 0x28]
jmp 0x4093e1
mov ecx, dword [esp + 0x28]
lea eax, [ecx + eax - 1]
div ecx
mov ebx, edx
call fcn.004027b0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + ebx*4]
mov al, 1
mov byte [esp + 0x24], al
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x1000101
call fcn.00405560
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.00658a01
add esp, 4
lea esi, [esp + 0x28]
call fcn.00449370
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x409453
mov ecx, dword [esp + 0x78]
push eax
test ecx, ecx
jne 0x40944c
call fcn.00658a01
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a3e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
test byte [0x9e8474], 0x40
push ebp
push esi
je 0x40a5ad
cmp dword [0x9f43ec], 0
jne 0x40a5ad
test bl, bl
je 0x40a40b
mov eax, dword [edi + 0x328]
jmp 0x40a412
movzx eax, byte [edi + 0x324]
test eax, eax
jne 0x40a5ad
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a5ad
test bl, bl
je 0x40a479
cmp dword [edi + 4], 0
je 0x40a5ad
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
mov dl, byte [edi + 0x41]
neg eax
sbb eax, eax
neg eax
push 0
inc eax
push 0xbb8
mov dword [edi + 0x330], eax
mov eax, dword [edi + 0xc]
push 3
push eax
mov dword [edi + 0x328], 1
mov byte [edi + 0x32c], dl
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40a493
cmp dword [edi + 4], 0
mov byte [edi + 0x324], 1
je 0x40a48b
mov al, byte [edi + 0x41]
jmp 0x40a48d
xor al, al
mov byte [edi + 0x32c], al
cmp byte [edi + 0x41], 0
mov ecx, dword [0x9f48bc]
mov al, byte [ecx + 0xa9]
mov byte [esp + 0xf], al
jne 0x40a4ad
test al, al
je 0x40a4bb
push 0
xor al, al
mov ecx, edi
call fcn.0040bc10
add esp, 4
mov edx, dword [edi + 8]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, eax
test bl, bl
je 0x40a4d6
cmp byte [edi + 0x324], 0
jne 0x40a4dc
mov dword [edi + 0x334], ebp
mov eax, dword [edi + 8]
push eax
lea esi, [esp + 0x14]
call fcn.00401100
mov ecx, dword [eax]
mov dword [edi + 0x338], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x33c], edx
mov ecx, dword [eax + 8]
mov dword [edi + 0x340], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [edi + 8]
lea esi, [esp + 0x10]
mov dword [edi + 0x344], edx
call fcn.004519b0
mov eax, dword [edi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, dword [edi + 0x14]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call esi
mov edx, dword [edi + 0x10c]
push 0
push edx
call esi
mov eax, dword [edi + 0x118]
push 0
push eax
call esi
mov ecx, dword [edi + 8]
and ebp, 0xff3bffff
or ebp, 0x1000000
push ebp
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0x34
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edi + 8]
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test bl, bl
je 0x40a593
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 1
call eax
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [0x9f48bc]
mov al, byte [esp + 0xf]
mov byte [edx + 0xa9], al
pop esi
pop ebp
add esp, 0x1c
ret