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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4887fd
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call fcn.00403390
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, 0x1a
test bl, bl
mov eax, 0x23
cmovne eax, ecx
push 1
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x430d93
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.00405950
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00406160
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.004033c0
push str.9CC84E23_75A4_41F9_82B5_67F4FD9E78A7Common
mov ecx, esi
call fcn.004087b0
mov ecx, esi
call fcn.00430db0
test al, al
jne 0x430d87
mov ecx, esi
call fcn.00430ec0
push 0x498e40
mov ecx, esi
call fcn.004087b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret

Function at 0x4313d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
test eax, eax
je 0x431420
push dword [ebp + 0xc]
push eax
call fcn.00431320
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x10]
shr ecx, 3
mov dword [ebp - 0x10], eax
and ecx, 0x3f
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, 0x38
cmp ecx, 0x38
jb 0x431444
mov eax, 0x78
sub eax, ecx
mov ecx, esi
push eax
push 0x498ed8
call fcn.00431320
push 8
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00431320
movdqu xmm0, xmmword [esi]
mov ecx, dword [ebp - 8]
xor ecx, ebp
movdqu xmmword [edi], xmm0
pop edi
pop esi
call fcn.0048079e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.00480f40
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431e23
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x431e69
mov eax, 0x5c
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x431e69
mov word [ebp + ecx*2 - 0x20c], ax
lea eax, [ecx*2 + 2]
cmp eax, 0x208
jae 0x432011
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
push 0x104
push str.iphlpapi.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa8], eax
test eax, eax
jne 0x431eb0
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431fb8
lea ecx, [ebp - 0x2a90]
mov dword [ebp - 0x2a90], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x431fb8
mov eax, ebx
mov dword [ebp - 0x2aa0], 3
lea ecx, [ebp - 0x2a98]
push esi
sub eax, ecx
push edi
lea edi, [ebp - 0x2a8c]
mov dword [ebp - 0x2aa4], eax
lea ecx, [edi + 8]
call fcn.00432020
mov dword [ebp - 0x2a9c], eax
xor eax, eax
mov dword [ebp - 0x2a98], eax
xor ecx, ecx
mov word [ebp - 0x2a94], ax
mov eax, dword [ebp - 0x2aa4]
lea ecx, [ecx]
lea esi, [ebp - 0x2a98]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x431f4d
inc ecx
cmp ecx, 6
jb 0x431f30
mov ecx, dword [ebp - 0x2a9c]
jmp 0x431f6b
mov eax, dword [edi + 0x1a0]
cmp eax, 6
je 0x431f5d
cmp eax, 0x17
jne 0x431fac
mov ecx, dword [ebp - 0x2a9c]
cmp dword [ebp - 0x2aa0], ecx
jle 0x431fac
movzx eax, byte [edi + 0x194]
mov byte [ebx], al
movzx eax, byte [edi + 0x195]
mov byte [ebx + 1], al
movzx eax, byte [edi + 0x196]
mov byte [ebx + 2], al
movzx eax, byte [edi + 0x197]
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x198]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2aa0], ecx
mov edi, dword [edi]
test edi, edi
jne 0x431f08
pop edi
pop esi
push dword [ebp - 0x2aa8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a98], eax
mov word [ebp - 0x2a94], ax
lea eax, [ebp - 0x2a98]
sub ebx, eax
lea ecx, [ecx]
lea ecx, [ebp - 0x2a98]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x431ff9
inc edx
cmp edx, 6
jb 0x431fe0
mov cl, 1
jmp 0x431ffb
xor cl, cl
xor eax, eax
test cl, cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop ebx
call fcn.0048079e
mov esp, ebp
pop ebp
ret
call fcn.00480dca
int3
Function at 0x432020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x114], 0x104
mov ebx, 3
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x10c], 0
call esi
test eax, eax
jne 0x4321ef
push edi
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call dword [sym.imp.MSVCR120.dll__snprintf_s]
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4321e7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 4
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x4321df
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x114], 0x103
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call esi
test eax, eax
jne 0x4321df
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x4321d0
mov esi, dword [sym.imp.MSVCR120.dll_strncmp]
lea eax, [ebp - 0x108]
push ebx
push 0x498fb8
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x4321a1
xor ebx, ebx
jmp 0x4321df
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x4321d0
push 3
lea eax, [ebp - 0x108]
push 0x498fb8
push eax
call esi
add esp, 0xc
test eax, eax
je 0x4321ca
mov ebx, 2
jmp 0x4321df
mov eax, dword [ebp - 0x10c]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x4330c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x433118
mov eax, dword [esp]
cmp al, 2
jne 0x433112
shr eax, 8
cmp al, 2
jne 0x433112
call fcn.00443860
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, 2
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x436fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x436feb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x436fde
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x43701f
cmp dword [esi + 8], 0
jne 0x437010
push 0x497c38
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x437010
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.MSVCR120.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x437042
mov eax, dword [esi + 8]
test eax, eax
je 0x43703c
push eax
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x43b890
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.no_proxy
mov dword [ebp - 0x394], ecx
xor esi, esi
call dword [sym.imp.MSVCR120.dll_getenv]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
mov byte [ebp - 0x188], 0
test eax, eax
je 0x43b8f9
push 0x104
lea ecx, [ebp - 0x188]
push ecx
push eax
call edi
cmp byte [ebp - 0x188], 0
je 0x43b8f9
lea eax, [ebp - 0x188]
push eax
call dword [0x4ad70c]
add esp, 4
mov ebx, eax
jmp 0x43b8fb
xor ebx, ebx
test ebx, ebx
jne 0x43b944
push str.NO_PROXY
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x28c], bl
test eax, eax
je 0x43b942
push 0x104
lea ecx, [ebp - 0x28c]
push ecx
push eax
call edi
cmp byte [ebp - 0x28c], bl
je 0x43b942
lea eax, [ebp - 0x28c]
push eax
call dword [0x4ad70c]
add esp, 4
mov ebx, eax
jmp 0x43b944
xor ebx, ebx
mov edi, dword [ebp - 0x394]
mov edx, ebx
mov ecx, dword [edi + 0x98]
call fcn.0043b740
test al, al
jne 0x43ba59
mov eax, dword [edi + 0x27c]
lea esi, [ebp - 0x84]
mov edi, dword [eax]
mov al, byte [edi]
test al, al
je 0x43b98c
movsx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_tolower]
mov byte [esi], al
lea edi, [edi + 1]
mov al, byte [edi]
add esp, 4
inc esi
test al, al
jne 0x43b973
mov eax, dword [str._proxy]
mov dword [esi], eax
mov ax, word [0x499888]
mov word [esi + 4], ax
mov al, byte [0x49988a]
mov byte [esi + 6], al
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x390], 0
test eax, eax
je 0x43b9f0
push 0x104
lea ecx, [ebp - 0x390]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x390], 0
je 0x43b9f0
lea eax, [ebp - 0x390]
push eax
call dword [0x4ad70c]
add esp, 4
mov esi, eax
jmp 0x43b9f2
xor esi, esi
test esi, esi
jne 0x43ba59
lea edx, [ebp - 0x84]
mov ecx, str.http_proxy
call fcn.0044f940
test eax, eax
jne 0x43ba3d
mov esi, 0x80
lea edx, [ebp - 0x84]
mov cl, byte [edx]
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x43ba22
sub cl, 0x20
mov byte [edx], cl
inc edx
test cl, cl
je 0x43ba2c
dec esi
jne 0x43ba15
lea ecx, [ebp - 0x84]
call fcn.0044fa10
mov esi, eax
test esi, esi
jne 0x43ba59
mov ecx, str.all_proxy
call fcn.0044fa10
mov esi, eax
test esi, esi
jne 0x43ba59
mov ecx, str.ALL_PROXY
call fcn.0044fa10
mov esi, eax
push ebx
call dword [0x4ad774]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x43c6b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
push esi
mov esi, dword [ecx + 0x208]
xor eax, eax
mov ecx, dword [ecx + 0x20c]
mov edx, 0x493e0
test esi, esi
mov dword [ebp - 4], edx
mov edx, 1
mov dword [ebp - 8], 0
cmovg eax, edx
push edi
test ecx, ecx
jle 0x43c6ec
or eax, 2
dec eax
je 0x43c706
dec eax
je 0x43c701
dec eax
jne 0x43c709
cmp esi, ecx
mov edx, ecx
cmovl edx, esi
mov dword [ebp - 4], edx
jmp 0x43c709
mov dword [ebp - 4], ecx
jmp 0x43c709
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov edi, edx
shr edi, 6
imul eax, edi, 0x3e8
sub ecx, eax
mov eax, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov esi, dword [eax + 0x508]
sub esi, edi
sub ecx, dword [eax + 0x50c]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, 0xffffffff
cmove ecx, eax
cmp byte [ebx + 0x252], 0
je 0x43c77a
mov ecx, dword [ebp + 8]
xor eax, eax
mov byte [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0xa8]
test edx, edx
je 0x43c80b
cmp byte [edx], 0
je 0x43c80b
mov dword [ebp - 4], 0
test ecx, ecx
js 0x43c878
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push dword [ebx + 0xb0]
call fcn.0043f5e0
add esp, 8
cmp eax, 1
jne 0x43c7cb
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
je 0x43c878
cmp dword [ebp - 4], 0
jne 0x43c87f
push dword [ebx + 0xac]
push str.Couldnt_resolve_proxy__s
push dword [ebp - 0xc]
call fcn.00440670
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 5
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0xb0], eax
mov dword [ebp - 4], 0
test ecx, ecx
js 0x43c878
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, ebx
call fcn.0043f5e0
add esp, 8
cmp eax, 1
je 0x43c7b5
cmp eax, 0xfffffffe
je 0x43c878
cmp dword [ebp - 4], 0
jne 0x43c87f
push dword [ebx + 0x9c]
push str.Couldnt_resolve_host__s
push dword [ebp - 0xc]
call fcn.00440670
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 6
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0x1c
mov eax, dword [ebp - 4]
pop edi
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d2b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.00440f50
movsd qword [ebx + 0x4d0], xmm0
add esp, 0x10
mov eax, dword [edi + 0x27c]
test byte [eax + 0x40], 0x10
mov eax, dword [esp + 0xc]
je 0x43d31c
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov byte [edi + 0x266], 0
cmp dword [ebx + 0x3a8], 0
je 0x43d371
push dword [edi + 0x294]
call dword [0x4ad774]
add esp, 4
mov dword [edi + 0x294], 0
push dword [ebx + 0x3a8]
push str.User_Agent:__s_r_n
call fcn.0044dce0
add esp, 8
mov dword [edi + 0x294], eax
test eax, eax
jne 0x43d371
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
cmp dword [edi + 0x154], 0xffffffff
jne 0x43d3d0
mov byte [edi + 0x25a], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.0043ee90
test eax, eax
je 0x43d46e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.00440f50
add esp, 0x10
movsd qword [ebx + 0x4d8], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 0x50c]
mov esi, eax
mov eax, 0x10624dd3
push dword [ebx + 0x508]
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.00440f50
mov eax, dword [esp + 0x1c]
add esp, 0x10
movsd qword [ebx + 0x4e0], xmm0
mov ecx, edi
mov byte [edi + 0x25a], 1
mov byte [eax], 1
mov edx, dword [edi + 0x154]
call fcn.0043e380
mov ecx, edi
call fcn.0043aaf0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x144], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x148], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43db20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x430], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43db7b
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004405b0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x434]
and eax, 0x7fffffff
mov dword [ebp - 0x10], 1
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x438]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x43dbe5
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.004405b0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x43e380
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x43e552
cmp byte [edi + 0x252], 0
jne 0x43e54b
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x43e40b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004513c0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00440670
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x10c], 0x80
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43e476
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004513c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00440670
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.0043e330
add esp, 4
test al, al
jne 0x43e4c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004513c0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00440670
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x88]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
call fcn.0043e330
add esp, 4
test al, al
jne 0x43e54b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.004513c0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00440670
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0043e270
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048079e
mov esp, ebp
pop ebp
ret
Function at 0x43e9c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 1
mov edi, ecx
push 6
push edx
mov esi, dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43ea0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.004513c0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004405b0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004405b0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43ea20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4ad0cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b21f8]
mov dword [ebp - 0x12c], 0x4020
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x43eaee
push 0x11c
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
mov dword [ebp - 0x124], 6
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x43eae2
mov dword [0x4b21f8], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048079e
mov esp, ebp
pop ebp
ret
mov dword [0x4b21f8], 1
jmp 0x43eaf3
cmp eax, 2
je 0x43eb3e
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43eb24
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x12c]
jg 0x43eb3e
push 4
lea eax, [ebp - 0x12c]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048079e
mov esp, ebp
pop ebp
ret