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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x404abf
mov esi, 0x9c
lea eax, [ebp - 0x9c]
push esi
push ebx
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 0x404ac6
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
jne 0x404ac6
xor eax, eax
jmp 0x404c2c
mov eax, dword [ebp - 0x8c]
mov byte [edi], bl
sub eax, ebx
je 0x404b9c
dec eax
je 0x404b28
dec eax
jne 0x404ba9
cmp dword [ebp - 0x98], 4
ja 0x404af3
push str.Microsoft_Windows_NT
jmp 0x404ba1
cmp dword [ebp - 0x98], 5
jne 0x404b21
cmp dword [ebp - 0x94], ebx
jne 0x404b0e
push str.Microsoft_Windows_2000
jmp 0x404ba1
cmp dword [ebp - 0x94], 1
jne 0x404b21
push str.Microsoft_Windows_XP
jmp 0x404ba1
push str.Microsoft_Windows_XP_later
jmp 0x404ba1
cmp dword [ebp - 0x98], 4
jne 0x404b95
cmp dword [ebp - 0x94], ebx
jne 0x404b5f
push str.Microsoft_Windows_95
push edi
call sub.MSVCRT.dll_strcat
cmp byte [ebp - 0x87], 0x43
pop ecx
pop ecx
je 0x404b58
cmp byte [ebp - 0x87], 0x42
jne 0x404ba9
push str.OSR2
jmp 0x404ba1
cmp dword [ebp - 0x94], 0xa
jne 0x404b85
push str.Microsoft_Windows_98
push edi
call sub.MSVCRT.dll_strcat
cmp byte [ebp - 0x87], 0x41
pop ecx
pop ecx
jne 0x404ba9
push 0x4236c8
jmp 0x404ba1
cmp dword [ebp - 0x94], 0x5a
jne 0x404b95
push str.Microsoft_Windows_Me
jmp 0x404ba1
push str.Microsoft_Windows_Me_later
jmp 0x404ba1
push str.Microsoft_Win32s
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp - 0x98], 4
mov eax, dword [ebp - 0x90]
ja 0x404bee
and eax, 0xffff
push eax
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str._Build__d._d._d__n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1a0]
push eax
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x1c
jmp 0x404c29
and eax, 0xffff
push eax
lea eax, [ebp - 0x88]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push eax
lea eax, [ebp - 0x1a0]
push str._s__Build__d._d._d__n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1a0]
push eax
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x20
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404cb5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x418be0
call fcn.004180a0
push ecx
mov eax, 0x1188
call fcn.004180e0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
cmp dword [ebp + 8], esi
je 0x404dff
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 0x404db4
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.0040e88d
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 0x404d98
push dword [ebp - 0x130]
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x118c]
push eax
call fcn.0040e8c8
add esp, 0xc
jmp 0x404d57
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x118c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0040f41c
pop ecx
pop ecx
push dword [ebp + 8]
push 0x10
lea eax, [ebp - 0x12c]
push eax
call fcn.00404c31
add esp, 0xc
mov dword [ebp - 0x1190], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x404e01
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405182
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x418bec
call fcn.004180a0
sub esp, 0x118
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405245
push 0x104
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x4051db
inc eax
mov byte [eax], bl
push str.BugReport.log
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x120], 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 - 0x124], esi
cmp esi, 0xffffffff
je 0x405241
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
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 0x406328
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x418d02
call fcn.004180a0
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x41be60
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 0x40635f
push eax
call ebp
mov dword [esi + 4], ebx
cmp dword [esi + 0x68], 0xffffffff
je 0x40638f
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edi
cmp eax, ebx
je 0x40637b
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x40638f
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 0x4063ac
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x70]
cmp eax, ebx
je 0x4063b9
push eax
call ebp
mov dword [esi + 0x70], ebx
mov ecx, esi
call fcn.004063f0
lea eax, [esi + 0x50]
push eax
call edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], bl
call fcn.00417da0
or dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 8]
call fcn.00406a42
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4067cb
Capabilities:
Create thread

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

Disassembly:
mov eax, 0x418f58
call fcn.004180a0
sub esp, 0x370
push esi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040c692
mov dword [esp], str.VQQPlayer.ocx
push eax
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call sub.MFC42.DLL_operator
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 0x407ada
mov dword [ebp - 0x10], edi
push 0x20019
push str.CLSIDAC3A36A8_9BFF_410A_A33D_2279FFEB69D2InprocServer32
push bind
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00409f87
test eax, eax
jne 0x407a21
lea eax, [ebp - 0x18]
mov esi, 0x104
push eax
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
mov dword [ebp - 0x18], esi
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x407a21
lea eax, [ebp - 0x278]
push esi
push eax
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
cmp eax, edi
je 0x407a21
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x407a21
cmp dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
je 0x407a0d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x407aea
push 0x44
lea eax, [ebp - 0x70]
pop esi
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x37c]
mov word [ebp - 0x40], di
push 1
pop esi
push dword [ebp - 0x14]
mov dword [ebp - 0x44], esi
push str.regsvr32__s___s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push edi
push esi
push edi
lea eax, [ebp - 0x37c]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407ac5
cmp dword [ebp - 0x28], edi
je 0x407ac5
push ebx
push 0x1388
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call ebx
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
je 0x407aad
push dword [ebp - 0x24]
call ebx
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
pop ebx
je 0x407adc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
jmp 0x407adc
cmp dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
je 0x407ada
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
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
mov dword fs:[0], ecx
leave
ret
Function at 0x408fd7
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x419320
call fcn.004180a0
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 0x409003
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 0x409016
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x409023
push eax
call edi
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x409030
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.00409948
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409057
Capabilities:
Create thread

Disassembly:
mov eax, 0x419336
call fcn.004180a0
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
je 0x4091de
cmp dword [ebp + 0xc], esi
je 0x4091de
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x94]
push eax
mov dword [ebp - 0x14], eax
call edi
mov eax, dword [ebx + 0x88]
and dword [ebp - 0x10], esi
test eax, eax
jle 0x4090bc
mov ecx, dword [ebx + 0x84]
mov esi, dword [ecx]
test esi, esi
je 0x4090b1
mov edx, dword [ebp + 8]
cmp dword [esi + 0x2c], edx
je 0x4090bc
xor esi, esi
inc dword [ebp - 0x10]
add ecx, 4
cmp dword [ebp - 0x10], eax
jl 0x4090a1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x409147
push 0x44
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x4090e4
mov ecx, eax
call fcn.00408ec8
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 0x4091cc
push dword [ebp - 0x14]
call edi
push esi
lea ecx, [ebx + 0x80]
call fcn.00415309
test eax, eax
jge 0x409130
test esi, esi
je 0x40912e
mov ecx, esi
call fcn.00408fd7
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 0x4091de
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 0x40916d
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx]
je 0x40916d
inc dword [ebp - 0x10]
add ecx, 4
cmp dword [ebp - 0x10], eax
jl 0x40915b
cmp dword [ebp - 0x10], eax
jl 0x40917c
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00415309
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x34], 0xffffffff
jne 0x4091f1
push esi
push 0
push 0x40932f
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
jne 0x4091f1
push dword [ebp - 0x14]
call edi
mov eax, dword [ebx + 0x88]
test eax, eax
jle 0x4091c3
dec eax
push 1
push eax
lea ecx, [ebx + 0x80]
call fcn.0040990d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4091de
mov ecx, esi
call fcn.00408fd7
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 0x4091e0
Function at 0x4091f6
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [esp + 0x18], ebx
push edi
mov edi, ecx
jne 0x40920c
xor eax, eax
jmp 0x409327
push ebp
lea eax, [edi + 0x94]
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 + 0x88], ebx
mov dword [esp + 0x10], ebx
jle 0x409317
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
cmp esi, ebx
je 0x4092d7
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 0x4092c7
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x24]
cmp dword [ecx], edx
je 0x409274
inc eax
add ecx, 4
cmp eax, ebx
jl 0x409262
jmp 0x4092c7
push 1
push eax
mov ecx, esi
call fcn.0040990d
push 1
pop eax
cmp ebx, eax
jg 0x4092c3
cmp dword [esi + 0x34], 0xffffffff
je 0x4092bc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x409299
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 0x4092bc
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 0x4092ed
xor ebx, ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x88]
jl 0x409237
jmp 0x409317
cmp dword [esp + 0x18], 0
je 0x409317
test esi, esi
je 0x409306
mov ecx, esi
call fcn.00408fd7
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push 1
lea ecx, [edi + 0x80]
push dword [esp + 0x14]
call fcn.0040990d
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 0x40bc7f
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 0x40bca9
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40bca9
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40bcad
xor eax, eax
jmp 0x40bd14
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40bd0b
lea eax, [ebp - 4]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x42418c
push edi
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40bd0b
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 0x40cdfa
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x41974e
call fcn.004180a0
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, 0x4244dc
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 [ebp - 4], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40cfb6
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4197dd
call fcn.004180a0
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x41c4ec
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 0x40d02e
mov eax, dword [esi + 0x30]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x40d028
cmp dword [edi + 0x28], 0xffffffff
je 0x40d028
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40d028
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [edi + 0x30]
test edi, edi
je 0x40d028
push edi
lea ecx, [ebp - 0x28]
push dword [ebp - 0x20]
call sub.MFC42.DLL_CPtrArray::SetAtGrow
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x40cff7
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 0x40d074
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
jle 0x40d063
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 0x40d054
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 0x40d0d8
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x40d0cd
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
je 0x40d0aa
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 0x40d0bf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [edi + 0x28], 0xffffffff
mov ecx, edi
call fcn.0040ce7d
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x34]
jl 0x40d088
lea edi, [esi + 0x2c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0040db39
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00417da0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040dadd
and byte [ebp - 4], 0
mov edi, ebx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x41c4f0
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.00417fb6
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
Function at 0x40d151
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4197f0
call fcn.004180a0
sub esp, 0x194
lea eax, [ebp - 0x1a0]
push esi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40d1c6
cmp byte [ebp - 0x1a0], 2
jne 0x40d1c0
mov al, byte [ebp - 0x19f]
cmp al, 2
jne 0x40d1c0
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040d2b9
and dword [ebp - 4], 0
add esi, 4
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x40d1c0
push 1
pop eax
jmp 0x40d1c8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40d1db
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x41981b
call fcn.004180a0
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push dword [eax]
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
jne 0x40d21c
mov ecx, dword [ebp + 8]
push 0x4244dc
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
jmp 0x40d2ab
push ebx
push 0x4244dc
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0xc]
push 1
pop ebx
cmp dword [eax], edi
mov dword [ebp - 4], ebx
je 0x40d28c
movsx ecx, word [esi + 0xa]
push ecx
push dword [edi + eax]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp + 0xc]
push 0x4242a0
push eax
call sub.MFC42.DLL_CString::Format
push str.127.0.0.1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x14
test eax, eax
jne 0x40d28c
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0xc]
add edi, 4
cmp dword [edi + eax], 0
jne 0x40d237
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_1
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret