joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f96e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
push edi
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
call dword [ecx + 0x14]
push 0x60c437
push eax
call fcn.004f67e0
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
add esp, 8
push 0
push 0x3f800000
push 0xff000000
push 1
push 0
push 0
push eax
call dword [edx + 0x28]
push str.Clear
push eax
call fcn.004f67e0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
add esp, 8
push 1
push 0x1b
push eax
call dword [ecx + 0x50]
push str.D3DRENDERSTATE_ALPHABLENDENABLE__TRUE
push eax
call fcn.004f67e0
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
add esp, 8
push 5
push 0x13
push eax
call dword [edx + 0x50]
push str.D3DRENDERSTATE_SRCBLEND__D3DBLEND_SRCALPHA
push eax
call fcn.004f67e0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
add esp, 8
push 6
push 0x14
push eax
call dword [ecx + 0x50]
push str.D3DRENDERSTATE_DESTBLEND__D3DBLEND_INVSRCALPHA
push eax
call fcn.004f67e0
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
add esp, 8
push 1
push 0x16
push eax
call dword [edx + 0x50]
push str.D3DRENDERSTATE_CULLMODE__D3DCULL_NONE
push eax
call fcn.004f67e0
add esp, 8
push 0x40
push 0x40
lea ecx, [ebp - 0x38]
call fcn.004e9d80
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004d7670
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push 0xfffffffffffffffe
push 0xfffffffffffffffe
mov ecx, dword [esi + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.004f8300
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov ecx, esi
call fcn.004f6940
lea ecx, [ebp - 0x38]
call fcn.004e3ca0
push 0
push 0
push 0x3e
push 0x3e
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004d77a0
test eax, eax
jne 0x4f982d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x11]
push eax
push str.Clip_problem_detected.
lea ecx, [ebp - 0x28]
call fcn.00402f20
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004f67b0
mov ecx, dword [ebp - 0x28]
mov bl, al
mov eax, dword [ebp - 0x20]
sub eax, ecx
test ecx, ecx
je 0x4f988b
cmp eax, 0x80
jbe 0x4f9881
push ecx
call fcn.005e05ca
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
call fcn.00401f50
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f9920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x68cde0]
push esi
mov esi, ecx
mov cl, byte [eax + 0x41d]
test cl, cl
jne 0x4f999b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
mov ecx, esi
mov byte [esi + 0x61], 0
call fcn.004f8390
test al, al
je 0x4f9955
mov ecx, esi
call fcn.004f98e0
jmp 0x4f9986
mov al, byte [esi + 0x60]
test al, al
je 0x4f9986
mov al, byte [esi + 0x61]
test al, al
jne 0x4f998d
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0
push 0
push str.FailureReason
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov byte [esi + 0x62], cl
mov byte [esi + 0x61], 1
mov al, byte [esi + 0x61]
test al, al
je 0x4f9994
mov ecx, esi
call fcn.004e9db0
mov ecx, esi
call fcn.004d7890
mov ecx, dword [0x68cde0]
lea edx, [esi + 0x40]
push edx
call fcn.0052c1e0
mov ecx, dword [0x68cde0]
lea eax, [esi + 0x4c]
push eax
call fcn.0052c1e0
mov ecx, dword [0x68cde0]
add esi, 0x62
push esi
call fcn.00525f00
pop esi
pop ebp
ret 8
Function at 0x503250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0051f610
xor ebx, ebx
mov dword [esi], vtable.Sexy::FontData.0
push 0x20
mov dword [ebp - 4], ebx
mov dword [esi + 0x140], ebx
call fcn.00401cc0
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], ebx
mov byte [eax], bl
mov eax, dword [esi + 0x140]
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x140]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x140]
mov dword [eax + 0xc], eax
push 0x1207c
mov byte [ebp - 4], 1
mov dword [esi + 0x14c], ebx
call fcn.005d0282
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x14c], eax
push 0x20
mov byte [ebp - 4], 2
mov dword [esi + 0x150], ebx
call fcn.00401cc0
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], ebx
mov byte [eax], bl
mov ecx, dword [esi + 0x150]
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0x150]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x150]
add esp, 0xc
mov dword [eax + 0xc], eax
lea ecx, [esi + 0x15c]
mov byte [ebp - 4], 3
call fcn.00402680
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 4
call fcn.00402680
mov byte [esi + 0x30], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea esp, [esp]
mov byte [esi + ebx + 0x40], bl
inc ebx
cmp ebx, 0x100
jb 0x503340
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x510840
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x65480c]
push str.IMAGEHLP.DLL
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x68c278], eax
jne 0x510873
xor al, al
mov ecx, dword [ebp - 4]
call fcn.005e149c
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call esi
test eax, eax
mov dword [0x68c27c], eax
jne 0x51089a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
call fcn.005e149c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x68c278]
push str.SymSetOptions
push eax
call esi
test eax, eax
mov dword [0x68c280], eax
je 0x51088b
mov ecx, dword [0x68c278]
push str.SymCleanup
push ecx
call esi
test eax, eax
mov dword [0x68c288], eax
je 0x51088b
mov edx, dword [0x68c278]
push str.UnDecorateSymbolName
push edx
call esi
test eax, eax
mov dword [0x68c284], eax
je 0x51088b
mov eax, dword [0x68c278]
push str.StackWalk
push eax
call esi
test eax, eax
mov dword [0x68c28c], eax
je 0x51088b
mov ecx, dword [0x68c278]
push str.SymFunctionTableAccess
push ecx
call esi
test eax, eax
mov dword [0x68c290], eax
je 0x51088b
mov edx, dword [0x68c278]
push str.SymGetModuleBase
push edx
call esi
test eax, eax
mov dword [0x68c294], eax
je 0x51088b
mov eax, dword [0x68c278]
push str.SymGetSymFromAddr
push eax
call esi
test eax, eax
mov dword [0x68c298], eax
je 0x51088b
push 4
call dword [0x68c280]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push 0x2f
push edx
call fcn.005e3c60
add esp, 8
test eax, eax
jne 0x510986
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.005e3c60
add esp, 8
test eax, eax
je 0x510989
mov byte [eax], 0
lea edx, [ebp - 0x108]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x510994
sub eax, esi
mov dword [ebp - 0x10c], eax
jne 0x5109a7
xor edx, edx
push 1
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x68c27c]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
pop esi
call fcn.005e149c
mov esp, ebp
pop ebp
ret
Function at 0x5109f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x510a12
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x510a31
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
push ebx
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x510a75
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x510a60
mov ecx, edx
cmp edi, esi
jb 0x510a6a
add ecx, esi
cmp edi, ecx
jbe 0x510a7e
mov ecx, dword [ebp - 4]
inc ebx
add eax, 0x28
cmp ebx, ecx
jb 0x510a52
pop ebx
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x510aa0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x510ad9
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0
push 0x64
push edx
push eax
call fcn.005e2a80
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
adc eax, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea edx, [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x510b18
jg 0x510b30
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jb 0x510b18
lea edx, [ebp - 0x18]
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push 0x64
push ecx
push edx
call fcn.005e25e0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x510d30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x72]
xor ebx, ebx
cmp al, bl
jne 0x510e13
lea ebx, [ebx]
cmp byte [ebp + 8], bl
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x210], ebx
je 0x510d77
mov eax, dword [esi + 8]
mov dword [ebp - 0x108], eax
mov eax, 1
mov dword [ebp - 0x10c], eax
jmp 0x510d7c
mov eax, 1
cmp byte [ebp + 0xc], bl
je 0x510d90
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], eax
mov edx, dword [esi + 8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x314]
push ecx
mov dword [ebp - 0x310], edx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0x40
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x186a0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x510e1d
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x314]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x510e1d
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x10c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x510e13
mov eax, dword [esi + 8]
lea edx, [ebp - 0x210]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x510e13
cmp byte [esi + 0x72], bl
je 0x510d50
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov ecx, esi
call fcn.00510d10
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x511a80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.005e2440
mov eax, dword [0x65480c]
mov dword [ebp - 4], eax
mov al, byte [0x68c2dd]
test al, al
je 0x511c22
push ebx
push edi
push 0x68cce0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x60d52c
push str.mem_leaks.txt
xor ebx, ebx
call fcn.005e1b97
mov edi, eax
add esp, 8
test edi, edi
jne 0x511ae2
push 0x68cce0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.005e149c
mov esp, ebp
pop ebp
ret
push esi
push 0
call fcn.005e4002
mov dword [ebp - 0x2008], eax
lea eax, [ebp - 0x2008]
push eax
call fcn.005e3e82
push eax
call fcn.005e3d77
push eax
lea ecx, [ebp - 0x2004]
push str.Memory_Leak_Report_for__s_n
push ecx
call fcn.005e230d
lea edx, [ebp - 0x2004]
push edx
push edi
call fcn.005e1a6c
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x20
push 0x611ab4
call esi
lea eax, [ebp - 0x2004]
push eax
call esi
mov eax, dword [0x68ccd4]
mov esi, dword [eax + 8]
cmp esi, eax
je 0x511bb6
jmp 0x511b50
mov ecx, dword [esi + 0x14]
cmp ecx, 1
mov eax, 0x614b38
jg 0x511b62
mov eax, 0x60c437
push eax
push ecx
mov ecx, dword [esi + 0x120]
push ecx
lea edx, [esi + 0x18]
push edx
lea eax, [ebp - 0x2004]
push str._s__d__:_Leak__d_byte_s_n
push eax
call fcn.005e230d
add esp, 0x18
lea ecx, [ebp - 0x2004]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x2004]
push edx
push edi
call fcn.005e1a6c
mov eax, dword [esi + 0x14]
push esi
add ebx, eax
call fcn.00413ca0
mov esi, eax
mov eax, dword [0x68ccd4]
add esp, 0xc
cmp esi, eax
jne 0x511b50
lea eax, [ebp - 0x2004]
push str.____________________________________________________________n
push eax
call fcn.005e230d
lea ecx, [ebp - 0x2004]
push ecx
push edi
call fcn.005e1a6c
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [ebp - 0x2004]
push edx
call esi
push ebx
lea eax, [ebp - 0x2004]
push str.Total_Unfreed:__d_bytes_n_n
push eax
call fcn.005e230d
add esp, 0xc
lea ecx, [ebp - 0x2004]
push ecx
call esi
lea edx, [ebp - 0x2004]
push edx
push edi
call fcn.005e1a6c
add esp, 8
push 0x68cce0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.005e149c
mov esp, ebp
pop ebp
ret
Function at 0x513e00
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [0x68c2c4]
xor edi, edi
test eax, eax
jle 0x513e4b
xor esi, esi
jmp 0x513e30
mov ecx, dword [0x68c2f8]
lea eax, [esi + ecx]
call fcn.00513d30
mov eax, dword [0x68c2c4]
inc edi
add esi, 0x18
cmp edi, eax
jl 0x513e30
lea edx, [ebp - 0xc]
mov dword [0x68c2c4], 0
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [0x68be50]
sub eax, edi
sbb ecx, esi
add edx, eax
mov eax, dword [0x68be54]
pop edi
adc eax, ecx
pop esi
mov dword [0x68be50], edx
mov dword [0x68be54], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x513f60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606c5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Sexy::HTTPTransfer.0
call fcn.00402680
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.00402680
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.00402680
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00402680
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 3
call fcn.00402680
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 4
call fcn.00402680
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 5
call fcn.00402680
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 6
call fcn.00402680
mov eax, dword [0x6516d0]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 4], eax
inc eax
mov dword [0x6516d0], eax
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 1
mov byte [esi + 0x71], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x51e850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607752
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], vtable.Sexy::ResourceManager.0
xor ebx, ebx
push 0x20
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
call fcn.00401cc0
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov byte [eax], bl
mov eax, dword [esi + 4]
mov dword [eax + 4], ebx
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov eax, dword [esi + 4]
mov dword [eax + 0xc], eax
push 0x20
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
call fcn.00401cc0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov byte [eax], bl
mov ecx, dword [esi + 0x10]
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0x10]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x10]
mov dword [eax + 0xc], eax
push 0x20
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], ebx
call fcn.00401cc0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov byte [eax], bl
mov edx, dword [esi + 0x1c]
mov dword [edx + 4], ebx
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov dword [eax + 0xc], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], ebx
call fcn.00402680
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.00402680
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 4
call fcn.00402680
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 5
call fcn.00402680
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x30], eax
mov byte [esi + 0x48], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x524766
Capabilities:
Hide graphical window

Disassembly:
fld qword [0x60d4b8]
push esi
mov esi, ecx
mov eax, dword [esi]
sub esp, 8
fstp qword [esp]
call dword [eax + 0xdc]
mov ecx, dword [esi + 0x2cc]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov byte [esi + 0x2bc], 1
mov ecx, esi
pop esi
jmp dword [edx + 0x30]
Function at 0x528db0
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x65480c]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov al, byte [esi + 0x2bd]
test al, al
jne 0x528fd0
mov al, byte [esi + 0x40e]
test al, al
jne 0x528e02
push 1
mov byte [esi + 0x40e], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
push 0
push 0x525560
call fcn.005e2758
add esp, 0xc
mov al, byte [esi + 0x408]
test al, al
je 0x528e13
mov ecx, esi
call fcn.00525420
mov eax, dword [esi + 0x2cc]
push ebx
push edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x2cc]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
call ebx
mov edx, dword [esi]
mov edi, eax
mov ecx, esi
mov byte [esi + 0x3dd], 1
mov dword [esi + 0x38c], edi
mov dword [esi + 0x390], edi
mov dword [esi + 0x338], edi
call dword [edx + 0x158]
mov ecx, esi
call fcn.00528760
mov ecx, esi
mov byte [esi + 0x3dd], 0
call fcn.005246a0
call ebx
sub eax, edi
test eax, eax
mov dword [ebp - 0x108], eax
fild dword [ebp - 0x108]
jge 0x528e95
fadd qword [0x60e338]
fmul qword [0x616ea8]
sub esp, 8
lea eax, [ebp - 0x104]
fstp qword [esp]
push str.Seconds_________g_r_n
push eax
call fcn.005e230d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
call edi
mov edx, dword [esi + 0x394]
push edx
lea eax, [ebp - 0x104]
push str.Sleep_Count_____d_r_n
push eax
call fcn.005e230d
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call edi
mov edx, dword [esi + 0x39c]
push edx
lea eax, [ebp - 0x104]
push str.Update_Count____d_r_n
push eax
call fcn.005e230d
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call edi
mov edx, dword [esi + 0x398]
push edx
lea eax, [ebp - 0x104]
push str.Draw_Count______d_r_n
push eax
call fcn.005e230d
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call edi
mov edx, dword [esi + 0x3e4]
push edx
lea eax, [ebp - 0x104]
push str.Draw_Time_______d_r_n
push eax
call fcn.005e230d
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call edi
mov edx, dword [esi + 0x404]
push edx
lea eax, [ebp - 0x104]
push str.Screen_Blt______d_r_n
push eax
call fcn.005e230d
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call edi
mov edx, dword [esi + 0x404]
mov eax, dword [esi + 0x3e4]
lea ecx, [edx + eax]
test ecx, ecx
jle 0x528fb8
mov eax, dword [esi + 0x398]
imul eax, eax, 0x3e8
cdq
idiv ecx
lea ecx, [ebp - 0x104]
push eax
push 0x616e00
push ecx
call fcn.005e230d
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
call edi
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x5c]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.005e149c
mov esp, ebp
pop ebp
ret
Function at 0x52b5d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [eax], 0x22
jne 0x52b60a
inc eax
push 0x22
push eax
call fcn.005e4a20
add esp, 8
test eax, eax
je 0x52b648
inc eax
test eax, eax
je 0x52b648
push 0x20
push eax
call fcn.005e4a20
add esp, 8
test eax, eax
je 0x52b648
lea ecx, [ebp - 0xd]
push ecx
inc eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402f20
mov edx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call dword [edx + 0xa8]
lea ecx, [ebp - 0x1c]
call fcn.0041d780
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x7a], 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x52bd70
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2b8]
test eax, eax
je 0x52bd94
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x2b8]
je 0x52bd94
mov byte [esi + 0x40d], 1
pop esi
ret
mov al, byte [esi + 0x2bd]
test al, al
jne 0x52bd92
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x2be], 1
mov byte [esi + 0x2bd], 1
call dword [eax + 0x50]
mov al, byte [esi + 0x41d]
test al, al
je 0x52bde3
fld qword [esi + 0x68]
mov edx, dword [esi]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call dword [edx + 0xdc]
fld qword [esi + 0x70]
mov eax, dword [esi]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call dword [eax + 0xe0]
mov al, byte [esi + 0x40e]
test al, al
push edi
je 0x52be02
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov al, byte [esi + 0x40e]
test al, al
jne 0x52bdf4
mov ecx, dword [esi + 0x2e8]
test ecx, ecx
je 0x52be11
mov edx, dword [ecx]
call dword [edx + 0x18]
mov al, byte [esi + 0x2c0]
test al, al
jne 0x52be34
mov eax, dword [esi + 0x2e0]
test eax, eax
je 0x52be34
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x52be34
mov eax, ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [esi + 0x2cc]
test eax, eax
je 0x52be47
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [esi + 0x2c1]
test al, al
je 0x52be7a
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
push 0
push 0x52ba00
call edi
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 1
push 0x52ba00
call edi
mov byte [esi + 0x2c1], 0
mov al, byte [esi + 0x2ec]
test al, al
pop edi
je 0x52bd92
mov edx, dword [esi]
mov ecx, esi
pop esi
jmp dword [edx + 0x5c]