joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404770
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ad768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4e69c8]
test eax, eax
jne 0x40481b
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.004ac20a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x404802
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x404802
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x4e69c8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404830
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404892
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x404aa0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404b8d
lea ecx, [esp + 0xc]
push ecx
push str..htm
push bind
call fcn.00404830
add esp, 0xc
test eax, eax
jne 0x404b8d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc]
push eax
push ecx
push bind
call fcn.00404830
add esp, 0xc
test eax, eax
jne 0x404b8d
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x404b60
lea eax, [esp + 0x10]
push 0x4e0690
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x404b60
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x404b63
mov byte [esi], 0
push 0x4e068c
push esi
call edi
mov edx, dword [esp + 0x21c]
push edx
push esi
call edi
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x408380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4adc20
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
cmp esi, ebp
mov edi, ecx
je 0x408557
cmp dword [edi + 0x2c], 1
jne 0x408557
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
shl esi, 5
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebp
mov byte [esp + 0x20], 0
mov eax, dword [esi + eax]
inc eax
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebp
call fcn.00408160
test al, al
je 0x408442
mov edx, dword [esp + 0x40]
push 1
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, edi
call fcn.00408900
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
sub ebp, ebx
inc ebp
jmp 0x4084e5
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
push 0x4e068c
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::operator
push ebx
lea ecx, [esp + 0x40]
call fcn.004ac20a
push 0x4e0954
lea ecx, [esp + 0x40]
call fcn.004ac20a
mov ecx, dword [esp + 0x40]
push 1
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, edi
call fcn.00408900
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
push 0x4e0950
lea ecx, [esp + 0x40]
call fcn.004ac20a
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [edi + 0x10]
xor edx, edx
mov byte [esp + 0x30], 0
mov ecx, dword [esi + eax + 8]
mov ebx, dword [esi + eax + 4]
inc ecx
cmp ebx, ecx
lea ecx, [esp + 0x3c]
sete dl
sub ebx, edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push ebp
push ebx
call fcn.00408ba0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
push 0
mov eax, dword [ecx - 8]
mov ecx, dword [edi + 0x10]
sub eax, ebp
mov ebp, dword [esi + ecx + 4]
push eax
add ebp, eax
push edx
mov dword [esi + ecx + 4], ebp
mov ecx, dword [edi + 0x10]
mov ebx, dword [esi + ecx + 8]
add ebx, eax
mov dword [esi + ecx + 8], ebx
lea ecx, [esi + ecx + 0xc]
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov ecx, edi
call fcn.00408c70
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40a520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ade23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00403a00
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, 1
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], vtable.CBitmap.0
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov dword [esi], vtable.CMinTrayBtn.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x5c], edi
call fcn.0040a650
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40d820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CBrush::CBrush
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0xf00021
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40dd90
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x7a
xor eax, eax
lea edi, [esi + 0x40]
mov dword [esp + 0xc], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esi + 0x228], ebx
mov dword [esi + 0x22c], 1
mov dword [esi + 0x230], 1
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], 1
mov dword [esi + 0x234], ebx
mov dword [esi + 0x250], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x40de32
cmp dword [esp + 0x10], 5
jb 0x40de32
mov eax, 1
pop edi
mov dword [esi + 0x238], eax
pop esi
pop ebx
add esp, 0x94
ret
mov dword [esi + 0x238], ebx
pop edi
pop esi
pop ebx
add esp, 0x94
ret
Function at 0x40fe70
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4ae45f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, 0x20
xor ecx, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x44], 1
lea edi, [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
shr eax, 0xa
shr ecx, 0xa
push eax
mov eax, dword [esp + 0x34]
shr edx, 0xa
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
shr eax, 0xa
shr ecx, 0xa
push eax
mov eax, dword [esp + 0x2c]
shr edx, 0xa
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.Memory_Used__lu____Total_Physical_Memory__luKB__Physical_Memory_Available__luKB__Total_Virtual_Memory__luKB__Available_Virtual_Memory__luKB__Working_Set_Min_:__luKB_Max_:__luKB_._r_n
push ecx
call sub.MFC42.DLL_CString::Format_1
mov esi, dword [esp + 0x6c]
add esp, 0x24
lea edx, [esp + 8]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 4

Function at 0x4101e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410256
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x410256
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x410256
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x410244
mov edx, esi
cmp edi, ebx
jb 0x41024e
add edx, ebx
cmp edi, edx
jbe 0x410260
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x410236
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x410a60
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x404
lea eax, [esp + 0x40c]
lea edx, [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov edx, dword [0x4e6a48]
add esp, 0xc
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
pop esi
add esp, 0x404
ret
Function at 0x412260
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x8058]
test eax, eax
je 0x412278
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [esi + 0x8040]
test eax, eax
je 0x41228c
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [esi + 0x8050]
test eax, eax
jne 0x41229d
mov ecx, esi
call fcn.00412230
mov eax, dword [esi + 0x8050]
test eax, eax
jne 0x4122ac
pop edi
pop esi
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ProcessCommand
push eax
call edi
mov dword [esi + 0x8060], eax
mov eax, dword [esi + 0x8050]
push str.DecryptMessage
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.EncryptMessage
push ecx
mov dword [esi + 0x8064], eax
call edi
mov edx, dword [esi + 0x8050]
push str.EncryptData
push edx
mov dword [esi + 0x8068], eax
call edi
mov dword [esi + 0x806c], eax
mov eax, dword [esi + 0x8050]
push str.DecryptData
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.InitGSS
push ecx
mov dword [esi + 0x8070], eax
call edi
mov edx, dword [esi + 0x8050]
push str.KillGSS
push edx
mov dword [esi + 0x8074], eax
call edi
mov dword [esi + 0x8078], eax
mov eax, dword [esi + 0x8050]
push str.DoClientAuth
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.ProcessReply
push ecx
mov dword [esi + 0x807c], eax
call edi
mov edx, dword [esi + 0x8050]
push str.GetUserFromKrbTicket
push edx
mov dword [esi + 0x8080], eax
call edi
mov ecx, dword [esi + 0x8060]
mov dword [esi + 0x8084], eax
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x8074]
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x8078]
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x8064]
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x8068]
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x806c]
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x8070]
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x807c]
test ecx, ecx
je 0x4123d2
mov ecx, dword [esi + 0x8080]
test ecx, ecx
je 0x4123d2
test eax, eax
jne 0x4123d9
pop edi
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
mov edi, 1
test eax, eax
jne 0x41240e
push 4
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x8054], eax
push ecx
push esi
push 0x412a30
push eax
call dword [esi + 0x8074]
add esp, 0x14
mov dword [esi + 0x8040], edi
mov dword [esi + 0x8058], edi
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x416610
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
call fcn.00417be0
cmp eax, 0xffffffff
je 0x41662d
push 0x2735
call sub.WS2_32.dll_WSASetLastError
xor eax, eax
pop esi
ret 0x10
mov ecx, esi
call fcn.00416990
test eax, eax
jne 0x416648
push 0x276d
call sub.WS2_32.dll_WSASetLastError
xor eax, eax
pop esi
ret 0x10
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x41667f
mov edx, dword [esp + 0x14]
push edi
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x416678
push 1
mov ecx, esi
call fcn.00417d30
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0xc]
push 0
push eax
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
jne 0x416698
xor eax, eax
pop esi
ret 0x10
push eax
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.004167d0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4166df
mov edx, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
add edx, 0x402
mov dword [esi + 0x1c], ecx
push 0x3f
push edx
mov ecx, esi
call fcn.00417bf0
push eax
mov eax, dword [esi + 0x14]
push eax
call sub.WS2_32.dll_WSAAsyncSelect
test eax, eax
je 0x4166fc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.00417a10
test eax, eax
jne 0x4166fc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00416730
test eax, eax
jne 0x41671e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
xor eax, eax
pop esi
ret 0x10
push 1
mov ecx, esi
call fcn.00417d30
mov eax, 1
pop esi
ret 0x10

Function at 0x417600
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x417620
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, eax
call dword [edx + 0x40]
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 8]
push eax
mov eax, dword [ecx + 0x14]
push edx
push eax
call sub.WS2_32.dll_recv
ret 0xc

Function at 0x417640
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x417660
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, eax
call dword [edx + 0x44]
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 8]
push eax
mov eax, dword [ecx + 0x14]
push edx
push eax
call sub.WS2_32.dll_send
ret 0xc
Function at 0x417780
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x4177a6
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x20]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
jmp 0x4177c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x14]
push edx
push eax
push ecx
call sub.WS2_32.dll_connect
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4177d3
call fcn.00417b30
cmp eax, 0x2733
jne 0x4177dc
push 2
mov ecx, edi
call fcn.00417d30
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x418030
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x418047
push eax
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00418520
test eax, eax
jne 0x418063
push 0x2736
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00418520
cmp eax, 1
je 0x4180c7
mov ecx, esi
call fcn.00418520
cmp eax, 2
je 0x4180c7
mov ecx, esi
call fcn.00418520
cmp eax, 3
je 0x4180c7
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x4180af
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.00417be0
push eax
call sub.WS2_32.dll_send
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x44]
pop esi
ret 0xc
push 0x2749
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0xc

Function at 0x4180e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4180f7
push eax
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00418520
test eax, eax
jne 0x418113
push 0x2736
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00418520
cmp eax, 1
je 0x418177
mov ecx, esi
call fcn.00418520
cmp eax, 2
je 0x418177
mov ecx, esi
call fcn.00418520
cmp eax, 3
je 0x418177
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x41815f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.00417be0
push eax
call sub.WS2_32.dll_recv
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x40]
pop esi
ret 0xc
push 0x2749
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0xc
Function at 0x418190
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x4181b1
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [eax + 0x24]
mov esi, eax
jmp 0x41822c
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4181fe
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4181f4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
jmp 0x4181fe
push 0x2726
call sub.WS2_32.dll_WSASetLastError
mov ecx, dword [esp + 0x20]
push ecx
call sub.WS2_32.dll_htons
mov ecx, dword [edi + 4]
lea edx, [esp + 8]
push 0x10
push edx
mov word [esp + 0x12], ax
call fcn.00417be0
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
jne 0x41823c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x418245
push 2
mov ecx, edi
call fcn.00418530
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x418250
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x41826e
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x20]
mov esi, eax
jmp 0x418290
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [edi + 4]
call fcn.00417be0
push eax
call sub.WS2_32.dll_connect
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4182a0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4182a9
push 2
mov ecx, edi
call fcn.00418530
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x4187d0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41880a
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x418803
push 1
mov ecx, esi
call fcn.00418530
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
push 0
push eax
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [esi + 4]
push eax
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 4]
call fcn.004167d0
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
call fcn.00417a10
test eax, eax
jne 0x418840
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x418874
mov edx, dword [ecx + 0x18]
push 0x3f
add edx, 0x402
push edx
call fcn.00417bf0
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x14]
push ecx
call sub.WS2_32.dll_WSAAsyncSelect
test eax, eax
je 0x418874
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.00416730
test eax, eax
jne 0x418892
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
mov edi, 1
mov ecx, esi
push edi
call fcn.00418530
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x418b27
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00417d40
xor ebx, ebx
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0xc]
mov dword [esi], vtable.CAsyncSslSocketLayer.0
mov dword [esi + 0x50], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret