joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x416a81
call fcn.00416540
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 ebx, ebx
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 5
call fcn.004160ce
mov edi, 0x4218cc
mov byte [ebp - 4], 6
push edi
lea ecx, [esi + 4]
mov dword [esi], ebx
call sub.MFC42.DLL_CString::operator_1
or dword [esi + 0x10], 0xffffffff
push edi
lea ecx, [esi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call sub.MFC42.DLL_CString::operator_1
push edi
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator_1
push edi
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::operator_1
push edi
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::operator_1
push edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40249d
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.00402536
cmp eax, 5
je 0x402532
cmp eax, 3
je 0x4024c1
cmp eax, 4
jne 0x40252a
push 0x3c
lea eax, [ebp - 0x3c]
pop esi
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x860]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], 0x824
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40252a
mov esi, 0x42021c
lea eax, [ebp - 0x860]
mov ecx, edi
push eax
push dword [esi]
call fcn.0040258c
test al, al
jne 0x402532
add esi, 4
cmp esi, str.tencent.com
jl 0x40250b
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x40252c

Function at 0x402536
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x7c]
add esp, 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x40
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x402585
mov eax, dword [ebp - 0x30]
jmp 0x402588
or eax, 0xffffffff
leave
ret 4
Function at 0x40545f
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 0x40567a
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x40567a
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 0x4054cc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x40567a
mov eax, dword [ebp - 0x8c]
and byte [ebx], 0
mov esi, dword [sym.imp.MSVCRT.dll__mbsnbcat]
xor ecx, ecx
sub eax, ecx
je 0x4055b1
dec eax
je 0x40553b
dec eax
jne 0x4055bd
cmp dword [ebp - 0x98], 4
ja 0x405503
push edi
push str.Microsoft_Windows_NT
jmp 0x4055b7
cmp dword [ebp - 0x98], 5
jne 0x405533
cmp dword [ebp - 0x94], ecx
jne 0x40551f
push edi
push str.Microsoft_Windows_2000
jmp 0x4055b7
cmp dword [ebp - 0x94], 1
jne 0x405533
push edi
push str.Microsoft_Windows_XP
jmp 0x4055b7
push edi
push str.Microsoft_Windows_XP_later
jmp 0x4055b7
cmp dword [ebp - 0x98], 4
jne 0x4055a9
cmp dword [ebp - 0x94], ecx
jne 0x405572
push edi
push str.Microsoft_Windows_95
push ebx
call esi
add esp, 0xc
cmp byte [ebp - 0x87], 0x43
je 0x40556a
cmp byte [ebp - 0x87], 0x42
jne 0x4055bd
push edi
push str.OSR2
jmp 0x4055b7
cmp dword [ebp - 0x94], 0xa
jne 0x405598
push edi
push str.Microsoft_Windows_98
push ebx
call esi
add esp, 0xc
cmp byte [ebp - 0x87], 0x41
jne 0x4055bd
push edi
push 0x420814
jmp 0x4055b7
cmp dword [ebp - 0x94], 0x5a
jne 0x4055a9
push edi
push str.Microsoft_Windows_Me
jmp 0x4055b7
push edi
push str.Microsoft_Windows_Me_later
jmp 0x4055b7
push edi
push str.Microsoft_Win32s
push ebx
call esi
add esp, 0xc
cmp dword [ebp - 0x98], 4
ja 0x40561b
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 0x405675
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 0x40567c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405708
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x417398
call fcn.00416540
push ecx
mov eax, 0x1188
call fcn.00416670
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405863
cmp dword [ebp + 0xc], esi
jle 0x405863
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 0x405810
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.004113c7
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 0x4057f4
push dword [ebp - 0x130]
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x118c]
push eax
call fcn.00411402
add esp, 0xc
jmp 0x4057b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x118c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00411f56
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x10
lea eax, [ebp - 0x12c]
push eax
call fcn.00405681
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 0x405865
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c4f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4173a4
call fcn.00416540
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 0x405ca5
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 0x405d3f
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 0x40607d
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x41745c
call fcn.00416540
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 0x4060d1
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 0x406108
lea eax, [ebp - 0x14]
push eax
call fcn.0040ea65
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 0x406108
xor esi, esi
jmp 0x40615b
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
cmp edi, ebx
je 0x406138
push edi
push ebx
push 0x420c84
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 0x406104
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.00412740
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 0x407cad
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x417606
call fcn.00416540
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x41a018
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 0x407ce4
push eax
call ebp
mov dword [esi + 4], ebx
cmp dword [esi + 0x68], 0xffffffff
je 0x407d14
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edi
cmp eax, ebx
je 0x407d00
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x407d14
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 0x407d31
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x70]
cmp eax, ebx
je 0x407d3e
push eax
call ebp
mov dword [esi + 0x70], ebx
mov ecx, esi
call fcn.00407d75
lea eax, [esi + 0x50]
push eax
call edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], bl
call fcn.00416224
or dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 8]
call fcn.004083cf
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408150
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4081a8
cmp dword [esp + 8], 0
je 0x4081a8
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 0x4081a8
cmp dword [esi + 0x68], 0xffffffff
jne 0x4081ac
push esi
push 0
push 0x4081b3
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x68], eax
jne 0x4081ac
xor eax, eax
jmp 0x4081af
push 1
pop eax
pop esi
ret 4
Function at 0x409466
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x4178bc
call fcn.00416540
sub esp, 0x374
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040e9ee
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 0x409613
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.0040bf09
test eax, eax
mov esi, 0x104
jne 0x409558
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 0x409558
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 0x409558
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 0x409558
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
je 0x409544
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 0x409623
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 0x4095fe
cmp dword [ebp - 0x28], ebx
je 0x4095fe
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 0x4095e7
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
je 0x409615
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
jmp 0x409615
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
je 0x409613
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 0x40b233
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x417ce4
call fcn.00416540
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 0x40b25f
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 0x40b272
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x40b27f
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x40b28c
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.0040b967
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b2b3
Capabilities:
Create thread

Disassembly:
mov eax, 0x417cfa
call fcn.00416540
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
je 0x40b43a
cmp dword [ebp + 0xc], esi
je 0x40b43a
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 0x40b318
mov ecx, dword [ebx + 0x240]
mov esi, dword [ecx]
test esi, esi
je 0x40b30d
mov edx, dword [ebp + 8]
cmp dword [esi + 0x2c], edx
je 0x40b318
xor esi, esi
inc dword [ebp - 0x10]
add ecx, 4
cmp dword [ebp - 0x10], eax
jl 0x40b2fd
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x40b3a3
push 0x44
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40b340
mov ecx, eax
call fcn.0040b124
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 0x40b428
push dword [ebp - 0x14]
call edi
push esi
lea ecx, [ebx + 0x23c]
call fcn.0040b944
test eax, eax
jge 0x40b38c
test esi, esi
je 0x40b38a
mov ecx, esi
call fcn.0040b233
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 0x40b43a
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 0x40b3c9
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx]
je 0x40b3c9
inc dword [ebp - 0x10]
add ecx, 4
cmp dword [ebp - 0x10], eax
jl 0x40b3b7
cmp dword [ebp - 0x10], eax
jl 0x40b3d8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040b944
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x34], 0xffffffff
jne 0x40b44d
push esi
push 0
push 0x40b58b
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
jne 0x40b44d
push dword [ebp - 0x14]
call edi
mov eax, dword [ebx + 0x244]
test eax, eax
jle 0x40b41f
dec eax
push 1
push eax
lea ecx, [ebx + 0x23c]
call fcn.0040516f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x40b43a
mov ecx, esi
call fcn.0040b233
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 0x40b43c
Function at 0x40b452
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [esp + 0x18], ebx
push edi
mov edi, ecx
jne 0x40b468
xor eax, eax
jmp 0x40b583
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 0x40b573
mov eax, dword [edi + 0x240]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, ebx
je 0x40b533
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 0x40b523
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x24]
cmp dword [ecx], edx
je 0x40b4d0
inc eax
add ecx, 4
cmp eax, ebx
jl 0x40b4be
jmp 0x40b523
push 1
push eax
mov ecx, esi
call fcn.0040516f
push 1
pop eax
cmp ebx, eax
jg 0x40b51f
cmp dword [esi + 0x34], 0xffffffff
je 0x40b518
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40b4f5
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 0x40b518
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 0x40b549
xor ebx, ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x244]
jl 0x40b493
jmp 0x40b573
cmp dword [esp + 0x18], 0
je 0x40b573
test esi, esi
je 0x40b562
mov ecx, esi
call fcn.0040b233
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push 1
lea ecx, [edi + 0x23c]
push dword [esp + 0x14]
call fcn.0040516f
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 0x40def3
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 0x40df1d
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40df1d
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40df21
xor eax, eax
jmp 0x40df88
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40df7f
lea eax, [ebp - 4]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x421514
push edi
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40df7f
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 0x40f495
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x418246
call fcn.00416540
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, 0x4218cc
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