joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x40533b
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x40533b
mov esi, 0x9c
lea eax, [ebp - 0x9c]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40518d
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x40533b
mov eax, dword [ebp - 0x8c]
and byte [ebx], 0
mov esi, dword [sym.imp.MSVCRT.dll__mbsnbcat]
xor ecx, ecx
sub eax, ecx
je 0x405272
dec eax
je 0x4051fc
dec eax
jne 0x40527e
cmp dword [ebp - 0x98], 4
ja 0x4051c4
push edi
push str.Microsoft_Windows_NT
jmp 0x405278
cmp dword [ebp - 0x98], 5
jne 0x4051f4
cmp dword [ebp - 0x94], ecx
jne 0x4051e0
push edi
push str.Microsoft_Windows_2000
jmp 0x405278
cmp dword [ebp - 0x94], 1
jne 0x4051f4
push edi
push str.Microsoft_Windows_XP
jmp 0x405278
push edi
push str.Microsoft_Windows_XP_later
jmp 0x405278
cmp dword [ebp - 0x98], 4
jne 0x40526a
cmp dword [ebp - 0x94], ecx
jne 0x405233
push edi
push str.Microsoft_Windows_95
push ebx
call esi
add esp, 0xc
cmp byte [ebp - 0x87], 0x43
je 0x40522b
cmp byte [ebp - 0x87], 0x42
jne 0x40527e
push edi
push str.OSR2
jmp 0x405278
cmp dword [ebp - 0x94], 0xa
jne 0x405259
push edi
push str.Microsoft_Windows_98
push ebx
call esi
add esp, 0xc
cmp byte [ebp - 0x87], 0x41
jne 0x40527e
push edi
push 0x4207a8
jmp 0x405278
cmp dword [ebp - 0x94], 0x5a
jne 0x40526a
push edi
push str.Microsoft_Windows_Me
jmp 0x405278
push edi
push str.Microsoft_Windows_Me_later
jmp 0x405278
push edi
push str.Microsoft_Win32s
push ebx
call esi
add esp, 0xc
cmp dword [ebp - 0x98], 4
ja 0x4052dc
and byte [ebp - 0x1a4], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a3]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x90]
and eax, 0xffff
push eax
lea eax, [ebp - 0x1a4]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str._Build__d._d._d__n
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push eax
push ebx
call esi
add esp, 0x24
jmp 0x405336
and byte [ebp - 0x1a4], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a3]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x90]
and eax, 0xffff
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push eax
push str._s__Build__d._d._d__n
lea eax, [ebp - 0x1a4]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push eax
push ebx
call esi
add esp, 0x28
push 1
pop eax
jmp 0x40533d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053c9
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x416f58
call fcn.00416190
push ecx
mov eax, 0x1188
call fcn.004162c0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405524
cmp dword [ebp + 0xc], esi
jle 0x405524
push 0x104
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
mov dword [ebp - 4], esi
push 1
pop ebx
mov byte [ebp - 4], bl
push 0x10
push esi
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
push 0x80
push 3
push esi
push ebx
push bind
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x11c], edi
cmp edi, 0xffffffff
je 0x4054d1
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x130], esi
lea eax, [ebp - 0x118c]
push eax
call fcn.0041103f
pop ecx
push esi
lea eax, [ebp - 0x130]
push eax
push 0x1000
lea eax, [ebp - 0x1130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x130], esi
je 0x4054b5
push dword [ebp - 0x130]
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x118c]
push eax
call fcn.0041107a
add esp, 0xc
jmp 0x405474
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x118c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00411bce
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x10
lea eax, [ebp - 0x12c]
push eax
call fcn.00405342
add esp, 0x10
mov dword [ebp - 0x1190], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x405526
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405910
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x416f64
call fcn.00416190
sub esp, 0x220
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov byte [ebp - 0x220], bl
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x405966
mov byte [eax], bl
mov byte [ebp - 0x118], bl
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
push str.BugReport.log
lea eax, [ebp - 0x220]
push eax
push str._s_s
push esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
add esp, 0x18
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x22c], esi
cmp esi, 0xffffffff
je 0x405a00
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d41
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x41701c
call fcn.00416190
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_4
mov esi, 0x105
lea ecx, [ebp - 0x10]
push esi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
cmp edi, ebx
je 0x405d95
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov byte [edi + 0x104], bl
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x405dcc
lea eax, [ebp - 0x14]
push eax
call fcn.0040e6ba
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x405dcc
xor esi, esi
jmp 0x405e1f
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
cmp edi, ebx
je 0x405dfc
push edi
push ebx
push 0x420c18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, esi
mov byte [edi + 0x104], bl
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x405dc8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi]
mov eax, dword [ebp - 0x18]
push ebx
push esi
push dword [ebp + 8]
lea ecx, [eax + 0x3c]
call fcn.004123c0
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x407971
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4171c6
call fcn.00416190
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x419fac
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
xor ebx, ebx
pop edi
cmp eax, ebx
mov dword [esp + 0x1c], edi
je 0x4079a8
push eax
call ebp
mov dword [esi + 4], ebx
cmp dword [esi + 0x68], 0xffffffff
je 0x4079d8
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edi
cmp eax, ebx
je 0x4079c4
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x4079d8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [esi + 0x68], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x1c]
push eax
call edi
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4079f5
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x70]
cmp eax, ebx
je 0x407a02
push eax
call ebp
mov dword [esi + 0x70], ebx
mov ecx, esi
call fcn.00407a39
lea eax, [esi + 0x50]
push eax
call edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], bl
call fcn.00415e74
or dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 8]
call fcn.0040808b
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407e14
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x407e6c
cmp dword [esp + 8], 0
je 0x407e6c
push ebx
push edi
lea edi, [esi + 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x10]
mov ebx, dword [esi + 0x44]
lea ecx, [esi + 0x3c]
push ebx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
test ebx, ebx
pop ebx
jl 0x407e6c
cmp dword [esi + 0x68], 0xffffffff
jne 0x407e70
push esi
push 0
push 0x407e77
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x68], eax
jne 0x407e70
xor eax, eax
jmp 0x407e73
push 1
pop eax
pop esi
ret 4
Function at 0x40911b
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x41747c
call fcn.00416190
sub esp, 0x374
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040e643
mov dword [esp], str.VQQPlayer.ocx
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4092c8
mov dword [ebp - 0x10], ebx
push 0x20019
push str.CLSIDAC3A36A8_9BFF_410A_A33D_2279FFEB69D2InprocServer32
push bind
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040bbd3
test eax, eax
mov esi, 0x104
jne 0x40920d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40920d
lea eax, [ebp - 0x380]
push esi
push eax
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
cmp eax, ebx
je 0x40920d
lea eax, [ebp - 0x380]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x40920d
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
je 0x4091f9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x4092d8
push 0x44
lea eax, [ebp - 0x70]
pop edi
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x70], edi
lea eax, [ebp - 0x178]
mov word [ebp - 0x40], bx
push 1
mov byte [ebp - 0x74], bl
pop edi
push dword [ebp - 0x14]
mov dword [ebp - 0x44], edi
push str.regsvr32__s___s_
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push edi
push ebx
lea eax, [ebp - 0x178]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4092b3
cmp dword [ebp - 0x28], ebx
je 0x4092b3
push 0x1388
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call edi
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
je 0x40929c
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
je 0x4092ca
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
jmp 0x4092ca
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
je 0x4092c8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40aee8
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4178a4
call fcn.00416190
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x40af14
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x40af27
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x40af34
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x40af41
push eax
call edi
mov dword [esi + 0x30], ebx
lea eax, [esi + 0x14]
mov dword [esi + 0x40], ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040b634
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40af68
Capabilities:
Create thread

Disassembly:
mov eax, 0x4178ba
call fcn.00416190
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
je 0x40b0ef
cmp dword [ebp + 0xc], esi
je 0x40b0ef
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x250]
push eax
mov dword [ebp - 0x14], eax
call edi
mov eax, dword [ebx + 0x244]
and dword [ebp - 0x10], esi
test eax, eax
jle 0x40afcd
mov ecx, dword [ebx + 0x240]
mov esi, dword [ecx]
test esi, esi
je 0x40afc2
mov edx, dword [ebp + 8]
cmp dword [esi + 0x2c], edx
je 0x40afcd
xor esi, esi
inc dword [ebp - 0x10]
add ecx, 4
cmp dword [ebp - 0x10], eax
jl 0x40afb2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x40b058
push 0x44
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40aff5
mov ecx, eax
call fcn.0040add9
mov esi, eax
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
push eax
push 0
push 0x100000
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esi + 0x30], eax
je 0x40b0dd
push dword [ebp - 0x14]
call edi
push esi
lea ecx, [ebx + 0x23c]
call fcn.00410ae0
test eax, eax
jge 0x40b041
test esi, esi
je 0x40b03f
mov ecx, esi
call fcn.0040aee8
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
xor esi, esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x40b0ef
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x14]
push eax
call edi
mov eax, dword [esi + 8]
and dword [ebp - 0x10], 0
test eax, eax
jle 0x40b07e
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx]
je 0x40b07e
inc dword [ebp - 0x10]
add ecx, 4
cmp dword [ebp - 0x10], eax
jl 0x40b06c
cmp dword [ebp - 0x10], eax
jl 0x40b08d
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00410ae0
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x34], 0xffffffff
jne 0x40b102
push esi
push 0
push 0x40b240
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
jne 0x40b102
push dword [ebp - 0x14]
call edi
mov eax, dword [ebx + 0x244]
test eax, eax
jle 0x40b0d4
dec eax
push 1
push eax
lea ecx, [ebx + 0x23c]
call fcn.0040b5f9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x40b0ef
mov ecx, esi
call fcn.0040aee8
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
push 1
pop eax
jmp 0x40b0f1
Function at 0x40b107
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [esp + 0x18], ebx
push edi
mov edi, ecx
jne 0x40b11d
xor eax, eax
jmp 0x40b238
push ebp
lea eax, [edi + 0x250]
push esi
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x244], ebx
mov dword [esp + 0x10], ebx
jle 0x40b228
mov eax, dword [edi + 0x240]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, ebx
je 0x40b1e8
lea ebp, [esi + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 8]
xor eax, eax
test ebx, ebx
jle 0x40b1d8
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x24]
cmp dword [ecx], edx
je 0x40b185
inc eax
add ecx, 4
cmp eax, ebx
jl 0x40b173
jmp 0x40b1d8
push 1
push eax
mov ecx, esi
call fcn.0040b5f9
push 1
pop eax
cmp ebx, eax
jg 0x40b1d4
cmp dword [esi + 0x34], 0xffffffff
je 0x40b1cd
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40b1aa
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x40b1cd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [esi + 0x34], 0xffffffff
push 1
pop eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x14], 0
jne 0x40b1fe
xor ebx, ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x244]
jl 0x40b148
jmp 0x40b228
cmp dword [esp + 0x18], 0
je 0x40b228
test esi, esi
je 0x40b217
mov ecx, esi
call fcn.0040aee8
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push 1
lea ecx, [edi + 0x23c]
push dword [esp + 0x14]
call fcn.0040b5f9
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret 4

Function at 0x40db5e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40db88
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40db88
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40db8c
xor eax, eax
jmp 0x40dbf3
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40dbea
lea eax, [ebp - 4]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x4214c0
push edi
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dbea
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push 1
mov ecx, dword [eax + 8]
pop ebx
shr ecx, 0x10
mov byte [edx], cl
mov edx, dword [ebp + 0x10]
mov cl, byte [eax + 8]
mov byte [edx], cl
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x14]
and ecx, 0xffff
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x18]
shr eax, 0x10
mov dword [ecx], eax
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f0ea
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x417dee
call fcn.00416190
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_4
mov ebx, 0x42187c
mov byte [ebp - 4], 1
push ebx
lea ecx, [esi + 4]
mov dword [esi], edi
call sub.MFC42.DLL_CString::operator_1
push ebx
lea ecx, [esi + 0xc]
mov word [esi + 8], di
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
or eax, 0xffffffff
mov word [esi + 0x10], di
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov byte [esi + 0x34], 1
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [ebp - 4], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f2a9
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x417e7d
call fcn.00416190
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x41a664
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CPtrArray::CPtrArray
lea eax, [esi + 0x14]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
xor ebx, ebx
test eax, eax
jle 0x40f321
mov eax, dword [esi + 0x30]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x40f31b
cmp dword [edi + 0x28], 0xffffffff
je 0x40f31b
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40f31b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [edi + 0x30]
test edi, edi
je 0x40f31b
push edi
lea ecx, [ebp - 0x28]
push dword [ebp - 0x20]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x40f2ea
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
mov ecx, ebx
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x40f367
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
jle 0x40f356
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + ecx*4]
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, dword [ebp - 0x20]
jl 0x40f347
push 0x1388
push 1
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 0x10], 0
cmp dword [esi + 0x34], 0
jle 0x40f3cb
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x40f3c0
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
je 0x40f39d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [edi + 0x38], 0xffffffff
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x40f3b2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [edi + 0x28], 0xffffffff
mov ecx, edi
call fcn.0040f170
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x34]
jl 0x40f37b
lea edi, [esi + 0x2c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0040fe2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00415e74
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040fdd0
and byte [ebp - 4], 0
mov edi, ebx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x41a668
lea eax, [edi + 8]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and byte [ebp - 4], 0
mov ecx, edi
call fcn.004160c6
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret