joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e800
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e833
push esi
call fcn.004418f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e82c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e8b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e8a2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e857
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e89e
cmp eax, 2
je 0x43e8a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e84a
cmp eax, 3
je 0x43e87d
cmp eax, 1
jne 0x43e84a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e84a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e84a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e8e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e8c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e8e0
add esp, 4
pop esi
ret

Function at 0x44a3f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44a493
test eax, eax
jbe 0x44a493
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44a493
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44a43e
xor esi, esi
jmp 0x44a444
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44a46f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044c390
add esi, eax
push esi
mov ebx, esi
call fcn.0044c390
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44a450
pop ebp
test edi, edi
pop edi
jne 0x44a493
test ebx, ebx
je 0x44a493
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0044e810
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44a5d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44a6ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44a6ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045ef7a
mov esi, eax
test esi, esi
je 0x44a6ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44a6ed
mov ecx, esi
call fcn.0044a540
cmp edi, eax
jge 0x44a6ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44a673
mov dword [esp + 0x34], 1
jmp 0x44a6ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44a6ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00449b40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45f91d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f955
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045d9d4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d9ac
jmp 0x45f961
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461012
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 0x461054
call fcn.00466ac7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461054
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46104b
xor eax, eax
jmp 0x46105c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461062
pop edi
pop esi
pop ebx
ret 4
Function at 0x466ff7
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 0x467025
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467043
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00466f5d
jmp 0x467043
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467043
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00466f5d
test edi, edi
mov eax, edi
jne 0x46702d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401150
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x429941
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 2
push eax
push 0x83
call fcn.00428128
lea edi, [esi + 0x68]
mov byte [esp + 0x1c], 3
mov ecx, edi
call fcn.00428122
lea ebx, [esi + 0x6c]
mov byte [esp + 0x1c], 4
mov ecx, ebx
call fcn.00428122
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 5
call fcn.00428122
lea ebp, [esi + 0x84]
mov byte [esp + 0x1c], 6
mov ecx, ebp
call fcn.00428122
lea ecx, [esi + 0x88]
mov byte [esp + 0x1c], 7
call fcn.00414640
lea ecx, [esi + 0x174]
mov byte [esp + 0x1c], 8
call fcn.00428122
lea ecx, [esi + 0x180]
mov byte [esp + 0x1c], 9
call fcn.00428122
mov ecx, dword [esp + 0x24]
push 0x433278
mov dword [esi + 0x78], ecx
mov ecx, edi
mov byte [esp + 0x20], 0xa
mov dword [esi], 0x42ca00
call fcn.0042811c
mov eax, 1
push 0x433278
mov ecx, ebx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 0
mov dword [esi + 0x74], 2
mov dword [esi + 0x80], eax
call fcn.0042811c
lea edx, [esp + 0x28]
lea ecx, [esi + 0x174]
push edx
call fcn.00428116
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x2c]
mov dword [esi + 0x17c], ecx
push edx
mov ecx, ebp
mov dword [esi + 0x178], eax
call fcn.00428116
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.00428116
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40128f
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
call fcn.00428116
jmp 0x4012d5
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40129e
push 0xb97
jmp 0x4012a3
push 0xb98
mov ecx, ebp
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [esp + 0x28]
push ebp
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, ebp
mov byte [esp + 0x20], 0xb
call fcn.00428116
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0xa
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0x28]
mov dword [esi + 0x7c], eax
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x403480
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x429d36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x9c
push eax
call esi
test eax, eax
jne 0x4034ed
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push ecx
call esi
test eax, eax
jne 0x4034ed
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
add esp, 0xb0
ret
mov esi, dword [esp + 0xbc]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x20]
mov edi, 4
sub eax, 0
je 0x4035af
dec eax
je 0x403550
dec eax
jne 0x4035bb
mov eax, dword [esp + 0x14]
cmp eax, edi
ja 0x403529
push str.Microsoft_Windows_NT
jmp 0x4035b4
cmp eax, 5
jne 0x403549
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40353d
push str.Microsoft_Windows_2000
jmp 0x4035b4
cmp eax, 1
jne 0x403549
push str.Microsoft_Windows_XP
jmp 0x4035b4
push str.Microsoft_Windows_XP_later
jmp 0x4035b4
cmp dword [esp + 0x14], edi
jne 0x4035a8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40357d
push str.Microsoft_Windows_95
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov al, byte [esp + 0x25]
cmp al, 0x43
je 0x403576
cmp al, 0x42
jne 0x4035bb
push str.OSR2
jmp 0x4035b4
cmp eax, 0xa
jne 0x40359c
push str.Microsoft_Windows_98
mov ecx, esi
call sub.MFC42.DLL_CString::operator
cmp byte [esp + 0x25], 0x41
jne 0x4035bb
push 0x4320cc
jmp 0x4035b4
cmp eax, 0x5a
jne 0x4035a8
push str.Microsoft_Windows_Me
jmp 0x4035b4
push str.Microsoft_Windows_Me_later
jmp 0x4035b4
push str.Microsoft_Win32s
mov ecx, esi
call sub.MFC42.DLL_CString::operator
cmp dword [esp + 0x14], edi
ja 0x403619
lea ecx, [esp + 0xc]
call fcn.00428122
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and edx, 0xffff
push edx
push eax
push ecx
lea edx, [esp + 0x18]
push str._Build__d._d._d__n
push edx
mov dword [esp + 0xc8], 0
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [esp + 0xc]
jmp 0x403674
lea ecx, [esp + 8]
call fcn.00428122
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push ecx
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s__Build__d._d._d__n
push edx
mov dword [esp + 0xcc], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xac]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0xb0
ret
Function at 0x407ae0
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0xc4]
mov edi, dword [esp + 0x10]
test edi, edi
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
je 0x407b2f
cmp eax, ecx
je 0x407b8b
mov esi, dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [eax + 0xc], edi
je 0x407b12
mov eax, dword [eax + 0x10]
push eax
call esi
lea ecx, [esp + 0x10]
call fcn.0040d050
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc4]
cmp eax, ecx
jne 0x407b07
pop edi
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x407b8b
mov esi, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [eax + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x43339c]
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x407b62
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
je 0x407b7f
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x407b58
jmp 0x407b7f
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x407b78
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x407b6a
cmp dword [eax + 8], ecx
je 0x407b83
mov eax, ecx
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 0xc4]
jne 0x407b39
pop edi
pop esi
pop ebx
ret 4

Function at 0x407ba0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0xc4]
mov edi, dword [esp + 0x10]
test edi, edi
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
je 0x407bef
cmp eax, ecx
je 0x407c4b
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [eax + 0xc], edi
je 0x407bd2
mov eax, dword [eax + 0x10]
push eax
call esi
lea ecx, [esp + 0x10]
call fcn.0040d050
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc4]
cmp eax, ecx
jne 0x407bc7
pop edi
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x407c4b
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [eax + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x43339c]
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x407c22
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
je 0x407c3f
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x407c18
jmp 0x407c3f
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x407c38
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x407c2a
cmp dword [eax + 8], ecx
je 0x407c43
mov eax, ecx
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 0xc4]
jne 0x407bf9
pop edi
pop esi
pop ebx
ret 4
Function at 0x412b50
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 4]
push edi
mov esi, ecx
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x412cf7
mov edx, dword [esp + 0x18]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x4333c8], eax
je 0x412c29
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xcc], eax
je 0x412cf7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call edi
mov ecx, dword [esi + 0xcc]
push str.GetModuleFileNameExA
push ecx
mov dword [esi + 0xa8], eax
call edi
mov edx, dword [esi + 0xcc]
push str.GetModuleBaseNameA
push edx
mov dword [esi + 0xac], eax
call edi
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xcc]
push str.EnumProcessModules
push eax
call edi
mov ecx, dword [esi + 0xac]
mov dword [esi + 0xb0], eax
test ecx, ecx
je 0x412c1d
mov ecx, dword [esi + 0xa8]
test ecx, ecx
je 0x412c1d
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x412c1d
test eax, eax
jne 0x412cd2
mov ecx, dword [esi + 0xcc]
push ecx
jmp 0x412ce7
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xcc], eax
je 0x412cf7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
mov edx, dword [esi + 0xcc]
push str.Process32First
push edx
mov dword [esi + 0xb8], eax
call edi
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0xcc]
push str.Process32Next
push eax
call edi
mov ecx, dword [esi + 0xcc]
push str.Module32First
push ecx
mov dword [esi + 0xc0], eax
call edi
mov edx, dword [esi + 0xcc]
push str.Module32Next
push edx
mov dword [esi + 0xc4], eax
call edi
mov ecx, dword [esi + 0xc0]
mov dword [esi + 0xc8], eax
test ecx, ecx
je 0x412ce0
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x412ce0
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x412ce0
mov ecx, dword [esi + 0xc4]
test ecx, ecx
je 0x412ce0
test eax, eax
je 0x412ce0
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
mov eax, dword [esi + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xcc], 0
pop edi
xor eax, eax
pop esi
add esp, 0x94
ret
Function at 0x415170
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov eax, dword [esi + 0x20]
push eax
call edi
test eax, eax
jne 0x415199
mov ecx, dword [esi + 0xd4]
push ecx
call edi
test eax, eax
je 0x41532e
mov eax, dword [esi + 0x88]
xor ebp, ebp
cmp eax, ebp
je 0x41532e
cmp dword [esi + 0x78], ebp
je 0x4151c3
mov ecx, esi
call fcn.00416230
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret 4
mov ecx, esi
mov dword [esi + 0x7c], ebp
call fcn.00416210
test eax, eax
je 0x415220
mov dword [esi + 0x84], ebp
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x415800
push ebp
push ebp
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0xa4], eax
je 0x41532e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x78], 1
mov dword [esi + 0x7c], eax
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret 4
mov eax, dword [esi + 0xac]
cmp eax, ebp
je 0x41532e
cmp dword [esi + 0xd0], ebp
je 0x415247
mov eax, 1
pop edi
mov dword [esi + 0x78], eax
pop esi
pop ebp
add esp, 0x14
ret 4
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xac]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esi + 0xe0]
cmp eax, ebp
jl 0x415279
mov ecx, dword [esi + 0x80]
mov edi, eax
cmp ecx, ebp
jne 0x41527c
mov edi, dword [esi + 0x54]
push ebx
mov ebx, dword [esi + 0xe4]
cmp ebx, ebp
jl 0x415293
mov ecx, dword [esi + 0x80]
mov edx, ebx
cmp ecx, ebp
jne 0x415296
mov edx, dword [esi + 0x58]
xor ecx, ecx
cmp dword [esi + 0x80], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
je 0x4152bc
cmp eax, ebp
jl 0x4152bc
cmp ebx, ebp
jl 0x4152bc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
mov ebp, ecx
mov eax, dword [esi + 0xac]
neg ebp
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, dword [eax]
push ebp
push ecx
mov ecx, dword [esi + 0x8c]
push 0
push edx
push edi
push 0
push 0
push ecx
push eax
call dword [ebx + 0x20]
test eax, eax
pop ebx
jne 0x415320
mov eax, dword [esi + 0xd4]
mov dword [esi + 0x78], 1
test eax, eax
je 0x415312
mov ecx, esi
call fcn.00416230
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret 4
mov edx, dword [esi + 0x20]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret 4
Function at 0x416f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x7f]
mov byte [ebp - 0x80], 0
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
stosb byte es:[edi], al
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc0]
push 0x40
push ecx
push ebx
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x416f92
cmp dword [ebp - 0x14], 0x40
je 0x416fa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2c]
push 0x42f468
push edx
mov dword [ebp - 0x2c], eax
call sub.MSVCRT.dll__CxxThrowException
cmp word [ebp - 0xc0], 0x5a4d
sete al
test al, al
jne 0x416fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x42f468
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1b8]
push 0xf8
add eax, ebx
push edx
push eax
push esi
call edi
test eax, eax
je 0x416ff9
cmp dword [ebp - 0x14], 0xf8
je 0x417010
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x30]
push 0x42f468
push ecx
mov dword [ebp - 0x30], eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x1b8], 0x4550
jne 0x417032
cmp word [ebp - 0x1b4], 0x14c
jne 0x417032
cmp word [ebp - 0x1a0], 0x10b
je 0x417049
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1c]
push 0x42f468
push edx
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x18], 0
lea ebx, [eax + ebx + 0xf8]
mov eax, dword [ebp - 0x1b2]
and eax, 0xffff
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], eax
jae 0x41710f
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x58]
push ecx
push 0x28
push edx
push ebx
push esi
call edi
test eax, eax
je 0x41708c
cmp dword [ebp - 0x14], 0x28
je 0x4170a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x42f468
push eax
call sub.MSVCRT.dll__CxxThrowException
add ebx, 0x28
mov ecx, 0xa
lea edi, [ebp - 0x80]
lea esi, [ebp - 0x58]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x41710f
mov eax, dword [ebp - 0x34]
and eax, 0x20000020
cmp eax, 0x20000020
jne 0x4170f4
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 0xc]
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
add eax, edx
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
jmp 0x41706b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret