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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48585d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4aa0cc]
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.00403380
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 0x42e513
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.004058b0
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004060c0
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.004033b0
push str.9CC84E23_75A4_41F9_82B5_67F4FD9E78A7Common
mov ecx, esi
call fcn.00408710
mov ecx, esi
call fcn.0042aeb0
test al, al
jne 0x42e507
mov ecx, esi
call fcn.0042afc0
push 0x495d28
mov ecx, esi
call fcn.00408710
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.0047db8e
mov esp, ebp
pop ebp
ret

Function at 0x42e740
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4aa0cc]
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 0x42e790
push dword [ebp + 0xc]
push eax
call fcn.0042e690
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 0x42e7b4
mov eax, 0x78
sub eax, ecx
mov ecx, esi
push eax
push 0x495dc0
call fcn.0042e690
push 8
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0042e690
movdqu xmm0, xmmword [esi]
mov ecx, dword [ebp - 8]
xor ecx, ebp
movdqu xmmword [edi], xmm0
pop edi
pop esi
call fcn.0047db8e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42f140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.0047e330
mov eax, dword [0x4aa0cc]
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 0x42f193
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x42f1d9
mov eax, 0x5c
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x42f1d9
mov word [ebp + ecx*2 - 0x20c], ax
lea eax, [ecx*2 + 2]
cmp eax, 0x208
jae 0x42f381
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 0x42f220
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42f328
lea ecx, [ebp - 0x2a90]
mov dword [ebp - 0x2a90], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x42f328
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.0042f390
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 0x42f2bd
inc ecx
cmp ecx, 6
jb 0x42f2a0
mov ecx, dword [ebp - 0x2a9c]
jmp 0x42f2db
mov eax, dword [edi + 0x1a0]
cmp eax, 6
je 0x42f2cd
cmp eax, 0x17
jne 0x42f31c
mov ecx, dword [ebp - 0x2a9c]
cmp dword [ebp - 0x2aa0], ecx
jle 0x42f31c
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 0x42f278
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 0x42f369
inc edx
cmp edx, 6
jb 0x42f350
mov cl, 1
jmp 0x42f36b
xor cl, cl
xor eax, eax
test cl, cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop ebx
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
call fcn.0047e1ba
int3
Function at 0x42f390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4aa0cc]
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 0x42f55f
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 0x42f557
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 0x42f54f
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 0x42f54f
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x42f540
mov esi, dword [sym.imp.MSVCR120.dll_strncmp]
lea eax, [ebp - 0x108]
push ebx
push 0x495ea0
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x42f511
xor ebx, ebx
jmp 0x42f54f
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x42f540
push 3
lea eax, [ebp - 0x108]
push 0x495ea0
push eax
call esi
add esp, 0xc
test eax, eax
je 0x42f53a
mov ebx, 2
jmp 0x42f54f
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.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x430430
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4aa0cc]
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 0x430488
mov eax, dword [esp]
cmp al, 2
jne 0x430482
shr eax, 8
cmp al, 2
jne 0x430482
call fcn.00440bd0
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0047db8e
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.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x434330
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 0x43435b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x43434e
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 0x43438f
cmp dword [esi + 8], 0
jne 0x434380
push 0x494b08
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x434380
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 0x4343b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4343ac
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 0x438c00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x4aa0cc]
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 0x438c69
push 0x104
lea ecx, [ebp - 0x188]
push ecx
push eax
call edi
cmp byte [ebp - 0x188], 0
je 0x438c69
lea eax, [ebp - 0x188]
push eax
call dword [0x4aa70c]
add esp, 4
mov ebx, eax
jmp 0x438c6b
xor ebx, ebx
test ebx, ebx
jne 0x438cb4
push str.NO_PROXY
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
mov byte [ebp - 0x28c], bl
test eax, eax
je 0x438cb2
push 0x104
lea ecx, [ebp - 0x28c]
push ecx
push eax
call edi
cmp byte [ebp - 0x28c], bl
je 0x438cb2
lea eax, [ebp - 0x28c]
push eax
call dword [0x4aa70c]
add esp, 4
mov ebx, eax
jmp 0x438cb4
xor ebx, ebx
mov edi, dword [ebp - 0x394]
mov edx, ebx
mov ecx, dword [edi + 0x98]
call fcn.00438ab0
test al, al
jne 0x438dc9
mov eax, dword [edi + 0x27c]
lea esi, [ebp - 0x84]
mov edi, dword [eax]
mov al, byte [edi]
test al, al
je 0x438cfc
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 0x438ce3
mov eax, dword [str._proxy]
mov dword [esi], eax
mov ax, word [0x496760]
mov word [esi + 4], ax
mov al, byte [0x496762]
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 0x438d60
push 0x104
lea ecx, [ebp - 0x390]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x390], 0
je 0x438d60
lea eax, [ebp - 0x390]
push eax
call dword [0x4aa70c]
add esp, 4
mov esi, eax
jmp 0x438d62
xor esi, esi
test esi, esi
jne 0x438dc9
lea edx, [ebp - 0x84]
mov ecx, str.http_proxy
call fcn.0044ccb0
test eax, eax
jne 0x438dad
mov esi, 0x80
lea edx, [ebp - 0x84]
mov cl, byte [edx]
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x438d92
sub cl, 0x20
mov byte [edx], cl
inc edx
test cl, cl
je 0x438d9c
dec esi
jne 0x438d85
lea ecx, [ebp - 0x84]
call fcn.0044cd80
mov esi, eax
test esi, esi
jne 0x438dc9
mov ecx, str.all_proxy
call fcn.0044cd80
mov esi, eax
test esi, esi
jne 0x438dc9
mov ecx, str.ALL_PROXY
call fcn.0044cd80
mov esi, eax
push ebx
call dword [0x4aa774]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x439a20
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 0x439a5c
or eax, 2
dec eax
je 0x439a76
dec eax
je 0x439a71
dec eax
jne 0x439a79
cmp esi, ecx
mov edx, ecx
cmovl edx, esi
mov dword [ebp - 4], edx
jmp 0x439a79
mov dword [ebp - 4], ecx
jmp 0x439a79
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 0x439aea
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 0x439b7b
cmp byte [edx], 0
je 0x439b7b
mov dword [ebp - 4], 0
test ecx, ecx
js 0x439be8
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push dword [ebx + 0xb0]
call fcn.0043c950
add esp, 8
cmp eax, 1
jne 0x439b3b
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 0x439be8
cmp dword [ebp - 4], 0
jne 0x439bef
push dword [ebx + 0xac]
push str.Couldnt_resolve_proxy__s
push dword [ebp - 0xc]
call fcn.0043d9e0
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 0x439be8
mov edx, dword [ebx + 0x98]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, ebx
call fcn.0043c950
add esp, 8
cmp eax, 1
je 0x439b25
cmp eax, 0xfffffffe
je 0x439be8
cmp dword [ebp - 4], 0
jne 0x439bef
push dword [ebx + 0x9c]
push str.Couldnt_resolve_host__s
push dword [ebp - 0xc]
call fcn.0043d9e0
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 0x43a620
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.0043e2c0
movsd qword [ebx + 0x4d0], xmm0
add esp, 0x10
mov eax, dword [edi + 0x27c]
test byte [eax + 0x40], 0x10
mov eax, dword [esp + 0xc]
je 0x43a68c
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 0x43a6e1
push dword [edi + 0x294]
call dword [0x4aa774]
add esp, 4
mov dword [edi + 0x294], 0
push dword [ebx + 0x3a8]
push str.User_Agent:__s_r_n
call fcn.0044b050
add esp, 8
mov dword [edi + 0x294], eax
test eax, eax
jne 0x43a6e1
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 0x43a740
mov byte [edi + 0x25a], 0
mov ecx, edi
mov edx, dword [edi + 0x48]
call fcn.0043c200
test eax, eax
je 0x43a7de
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.0043e2c0
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.0043e2c0
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.0043b6f0
mov ecx, edi
call fcn.00437e60
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 0x43ae90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4aa0cc]
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 0x43aeeb
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0043d920
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
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 0x43af55
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.0043d920
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x43b6f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4aa0cc]
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 0x43b8c2
cmp byte [edi + 0x252], 0
jne 0x43b8bb
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 0x43b77b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044e730
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0043d9e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
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 0x43b7e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044e730
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043d9e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
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.0043b6a0
add esp, 4
test al, al
jne 0x43b839
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044e730
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043d9e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
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.0043b6a0
add esp, 4
test al, al
jne 0x43b8bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0044e730
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043d9e0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0043b5e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x43bd30
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 0x43bd7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.0044e730
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043d920
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043d920
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43bd90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4aefd8]
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 0x43be5e
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 0x43be52
mov dword [0x4aefd8], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
mov dword [0x4aefd8], 1
jmp 0x43be63
cmp eax, 2
je 0x43beae
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 0x43be94
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x12c]
jg 0x43beae
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.0047db8e
mov esp, ebp
pop ebp
ret