joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423a60
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 0x14
push edi
test eax, eax
je 0x423a7c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 4], 0
push 0
push 0
push 0
push 0
push str.Game_installer
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
jne 0x423aba
lea ecx, [ebp - 0x14]
call fcn.00473f63
push 0x4b1888
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], vtable.InetErr.0
mov dword [ebp - 8], 2
call fcn.0047416a
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 4]
push ecx
push 2
push eax
mov dword [ebp - 4], 0xea60
call edi
mov eax, dword [esi + 4]
push 4
lea edx, [ebp - 4]
push edx
push 5
push eax
call edi
mov edx, dword [esi + 4]
push 4
lea ecx, [ebp - 4]
push ecx
push 6
push edx
call edi
xor eax, eax
cmp dword [esi + 4], eax
pop edi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x432580
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4bb674]
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push str.Sleepiung_until_navigated
push ecx
mov dword [ebp - 4], eax
call fcn.004011c0
add esp, 8
push 0xdd
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::SleepUntilNavigated
call fcn.00401ef0
lea edx, [ebp - 4]
push edx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 4]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4325ed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4325ed
mov edx, dword [ebp - 4]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
cmp dword [esi + 0xc0], 0
jne 0x43260a
mov ecx, dword [0x4bbe08]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432690
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4bb674]
push esi
push edi
lea ecx, [ebp - 4]
push str.Document_complete.
push ecx
mov dword [ebp - 4], eax
call fcn.004011c0
add esp, 8
push 0x109
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnDocumentComplete
call fcn.00401ef0
lea edx, [ebp - 4]
push edx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4326fe
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4326fe
mov edx, dword [ebp - 4]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push ecx
push esi
call fcn.0043b620
mov dword [esi + 0xc0], 1
mov ecx, dword [0x4bbe08]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x4bb674]
lea edx, [ebp + 0x10]
push str.End_sleep
push edx
mov dword [ebp + 0x10], ecx
call fcn.004011c0
add esp, 8
push 0x10d
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnDocumentComplete
call fcn.00401ef0
lea eax, [ebp + 0x10]
push eax
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x432790
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x432790
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x437b50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0040e500
mov ebx, eax
cmp ebx, esi
je 0x437bca
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x437bb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x437c4c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00437b50
mov ebx, eax
cmp ebx, esi
jne 0x437ba4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x437c00
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x437c65
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00417ed0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x437c88
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047421a
mov esp, ebp
pop ebp
ret 4
Function at 0x4395a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x40c], ecx
xor ecx, ecx
push 2
push ecx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x408], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4395ef
call fcn.0042c250
mov esi, eax
jmp 0x439696
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x439608
call fcn.0042c250
jmp 0x43968d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x43961d
call fcn.0042c250
jmp 0x43968d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x439635
mov esi, 0x8007000e
jmp 0x43968f
push eax
lea ecx, [ebp - 0x408]
call fcn.004382c0
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x439652
mov esi, 0x8007000e
jmp 0x43968f
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x43966b
call fcn.0042c250
jmp 0x43968d
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x410]
call fcn.00439280
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x4396b0
lea ecx, [ebp - 0x408]
call fcn.00437b10
nop
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047421a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x439ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.004336e0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push edi
push esi
mov dword [ebp - 8], 0xffffffff
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x439f9e
push 0xf0
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
test eax, eax
je 0x439f14
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x439f7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x439f7b
push edi
push ebx
call fcn.00436d40
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
test esi, esi
je 0x439f5e
cmp esi, 0xffffffff
jne 0x439f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp edi, ebx
je 0x439f87
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x439f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x439f95
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b840
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], edi
call fcn.004336e0
lea eax, [ebp - 4]
push eax
push 0x49b1f4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0042ccc0
push 0
test eax, eax
jns 0x43b88f
push 0
push 0x49c3e8
push 0
push 0
push 0
push edi
push str.Shell.Explorer
call fcn.00432e10
mov edi, eax
jmp 0x43b8c3
mov eax, dword [ebp - 4]
push 0x49c3e8
lea edx, [ebp - 0xc]
push edx
push 0
push edi
mov dword [ebp - 0xc], 0
mov ecx, dword [eax]
push str.Shell.Explorer
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x43b8c3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
test eax, eax
je 0x43b8d2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
test eax, eax
jns 0x43b902
cmp byte [esi + 0x20], 0
mov eax, dword [esi]
mov ecx, esi
je 0x43b8f3
mov edx, dword [eax + 0x28]
push 0xffffffffffffffff
call edx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [eax + 0x2c]
call edx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea edi, [esi + 0xb0]
push edi
push 0x49ad28
lea ecx, [ebp - 0x10]
call fcn.0043acb0
mov edx, dword [edi]
lea eax, [esi + 0x54]
cmp dword [eax + 0x28], 0xfefefefe
lea ecx, [eax + 0x28]
je 0x43b931
push 0x80004005
call fcn.00401000
push ecx
push 0x49c418
push eax
push edx
call fcn.0042eba0
mov edi, dword [edi]
xor eax, eax
mov dword [ebp - 8], eax
test edi, edi
je 0x43b95c
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [ebp - 8]
push ecx
push 0x49accc
push edi
call edx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
lea ecx, [esi + 0x84]
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [esi + 4]
push esi
push 8
push eax
mov dword [0x4bbe70], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x43aab0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
mov dword [0x4bbe74], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
test eax, eax
je 0x43b9af
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43f740
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x43f790
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x43f78a
shr eax, 8
cmp al, 2
jne 0x43f78a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0047421a
mov esp, ebp
pop ebp
ret

Function at 0x43f8f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x43f910
lea eax, [esi + 0x2b]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x40], esi
je 0x43f92e
push str.easy_handled_already_used_in_multi_handle
push ebx
call fcn.0044b5a0
add esp, 8
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebx + 0x44]
cmp edi, esi
jne 0x43f957
push 3
push 1
call fcn.0043fc50
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x43f954
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x44], edi
mov eax, dword [ebx + 0x454]
push eax
push 6
push edi
call fcn.00440270
push ebx
push edi
call fcn.00440860
mov esi, eax
add esp, 0x14
test esi, esi
je 0x43f993
push edi
call fcn.00440000
add esp, 4
lea eax, [esi - 3]
neg eax
sbb eax, eax
pop edi
and eax, 0xffffffe7
pop esi
add eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x40], edi
jmp 0x43f9a3
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x43fa78
call fcn.0044b120
lea ecx, [ebp - 0xc]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x18], edx
call fcn.00440a10
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x43f9a0
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x43fa6e
cmp eax, esi
jne 0x43fa2e
call fcn.0044b120
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
push edx
push eax
call fcn.0044b150
add esp, 0x10
cmp eax, 0xa
jg 0x43fa2e
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 2
jle 0x43fa31
cmp eax, 0xa
jge 0x43fa1e
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
push eax
call fcn.00443c30
add esp, 4
jmp 0x43fa31
mov eax, 0x3e8
push eax
call fcn.00443c30
add esp, 4
jmp 0x43fa31
mov dword [ebp - 4], esi
lea edx, [ebp - 0x10]
push edx
push edi
call fcn.00441d30
mov esi, eax
add esp, 8
test esi, esi
jne 0x43f9a0
cmp dword [ebp - 0x10], eax
jne 0x43f9a0
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00440100
add esp, 8
test eax, eax
je 0x43f9a0
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
jmp 0x43fa75
mov dword [ebp - 8], 0x38
mov ebx, dword [ebp + 8]
push ebx
push edi
call fcn.00440ed0
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b270
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x44b2a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x44b3e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x44b3fb
mov edx, dword [esi + 0x12c]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x44b42f
cmp eax, 2
jg 0x44b42f
mov ecx, dword [esi + 0x128]
push ecx
push 1
lea edx, [eax + eax*2 + 0x49f818]
push 2
push edx
call fcn.00477d6e
mov eax, dword [esi + 0x128]
push eax
push 1
push edi
push ebx
call fcn.00477d6e
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x134]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x44b6bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x44b691
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.004587f0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0044b5a0
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x85cc], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x44d3d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x448], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x44d423
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0044b520
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x44c]
push edx
mov dword [ebp - 0x10], 1
call fcn.004511d0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x450]
push eax
call fcn.004511d0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x44d495
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0044b520
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
Function at 0x44db00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1a8], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
jne 0x44dc97
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x44db8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004587f0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0044b5a0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44dbdd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004587f0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0044b5a0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0xcc]
lea edi, [esi + 0x9e]
lea esi, [ebp - 0x104]
call fcn.0044dac0
test eax, eax
jne 0x44dc34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.004587f0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0044b5a0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0x100]
lea edi, [eax + 0xd0]
lea esi, [ebp - 0x84]
call fcn.0044dac0
test eax, eax
jne 0x44dc91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.004587f0
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0044b5a0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.0044da60
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047421a
mov esp, ebp
pop ebp
ret

Function at 0x44dcc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x44dd06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004587f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0044b520
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0044b520
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44dd20
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4bbebc], 0
mov dword [ebp - 0x9c], 0x4020
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 4
jne 0x44ddb6
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00474610
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
mov dword [0x4bbebc], 1
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x44ddb6
cmp dword [ebp - 0x94], 6
jb 0x44ddb6
mov dword [0x4bbebc], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
cmp dword [0x4bbebc], 2
je 0x44de0f
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44ddf4
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0x9c]
jg 0x44de0e
push 4
lea edx, [ebp - 0x9c]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x590]
test esi, esi
je 0x44de8b
mov eax, dword [edi + 0x44]
test eax, eax
je 0x44de8b
push 0x44de20
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x30]
push ecx
push edx
call fcn.0044f1a0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x44de94
mov dword [edi + 0x590], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44de9d
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
jne 0x44de8b
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x44de8b
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret