joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002fc80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax]
push edi
mov edi, ecx
mov eax, esi
mov dword [esp + 0x14], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002fca0
sub eax, edx
add eax, esi
mov ecx, esi
mov edx, 0x811c9dc5
cmp esi, eax
je 0x1002fcc6
movsx ebx, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, ebx
cmp ecx, eax
jne 0x1002fcb6
mov eax, dword [edi + 0x20]
mov ecx, eax
and ecx, edx
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x24], ecx
ja 0x1002fce3
shr eax, 1
or edx, 0xffffffff
sub edx, eax
add ecx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 4]
lea edx, [edi + 4]
mov edi, dword [edi + 0x10]
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
mov dword [esp + 0xc], edx
cmp edi, eax
jne 0x1002fcfd
mov ebx, eax
jmp 0x1002fd02
mov eax, dword [ecx + 4]
mov ebx, dword [eax]
cmp ebx, edi
je 0x1002fd41
mov ebx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002fd30
test dl, dl
je 0x1002fd2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002fd30
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002fd10
xor eax, eax
jmp 0x1002fd35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002fd80
cmp ebx, edi
jne 0x1002fd06
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp ebx, eax
je 0x1002fd5b
push eax
push ecx
push ebx
mov ecx, edx
call fcn.10002290
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x10]
lea eax, [edx + eax*8]
mov edx, dword [eax]
cmp edx, esi
jne 0x1002fdd5
mov dword [eax], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x10]
mov dword [edx + eax*8 + 4], ecx
jmp 0x1002fdf9
mov eax, dword [ebx + 8]
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002fda5
test dl, dl
je 0x1002fda1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002fda5
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002fd85
xor eax, eax
jmp 0x1002fdaa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002fdb2
mov ebx, dword [ebx]
jmp 0x1002fd3d
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0xc]
push ecx
lea edi, [esp + 0x18]
call fcn.1002d460
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edx, ebx
je 0x1002fdf7
mov edx, dword [eax + 4]
mov edx, dword [edx]
mov dword [eax + 4], edx
cmp edx, ecx
je 0x1002fdf9
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x10]
mov edx, dword [eax + ecx*8 + 4]
lea eax, [eax + ecx*8 + 4]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
call fcn.1002fe20
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], edx
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002ff60
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10137b78
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x101b1c00]
mov edx, dword [eax + 0xc]
mov ecx, 0x101b1c00
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov di, word [ebp + 0xc]
mov dword [esp + 0x30], 0
mov edx, dword [esi + 0x3c0]
test eax, eax
jne 0x1002ffc5
movzx eax, di
call fcn.1002eae0
push 0x10193c5c
push eax
movzx eax, di
push eax
mov ecx, edx
shr ecx, 8
movzx eax, cl
movzx ecx, dl
push eax
push ecx
push str.HTTP__d._d__d__s_s
lea edi, [esp + 0x28]
call fcn.1002d9d0
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
add esp, 0x18
mov edx, edi
push edx
mov edx, dword [eax + 0x14]
push 0
push ebx
mov ecx, esi
call edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x20]
push 0
push eax
push 0
push ecx
xor ecx, ecx
call fcn.1002f070
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add esp, 0x1c
mov dword [esp + 0x18], edi
mov edx, dword [edi - 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
push 2
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
mov edx, dword [edx + 8]
lea ecx, [esi + 4]
lea eax, [esp + 0x18]
push eax
push ebx
call edx
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003006f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10031010
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10137b78
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x101b1c00]
mov edx, dword [eax + 0xc]
mov ecx, 0x101b1c00
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov di, word [ebp + 0xc]
mov dword [esp + 0x30], 0
mov edx, dword [esi + 0x5a8]
test eax, eax
jne 0x10031075
movzx eax, di
call fcn.1002eae0
push 0x10193c5c
push eax
movzx eax, di
push eax
mov ecx, edx
shr ecx, 8
movzx eax, cl
movzx ecx, dl
push eax
push ecx
push str.HTTP__d._d__d__s_s
lea edi, [esp + 0x28]
call fcn.1002d9d0
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
add esp, 0x18
mov edx, edi
push edx
mov edx, dword [eax + 0x14]
push 0
push ebx
mov ecx, esi
call edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x20]
push 0
push eax
push 0
push ecx
xor ecx, ecx
call fcn.1002f070
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add esp, 0x1c
mov dword [esp + 0x18], edi
mov edx, dword [edi - 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
push 2
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
mov edx, dword [edx + 8]
lea ecx, [esi + 4]
lea eax, [esp + 0x18]
push eax
push ebx
call edx
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003111f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10032030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0xc]
push edi
test eax, eax
je 0x10032062
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10032062
xor eax, eax
cmp dword [ebp - 4], 0x103
sete al
test eax, eax
jne 0x10032120
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10032092
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push 0x18
call fcn.1011bb14
add esp, 4
test eax, eax
je 0x100320bc
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov edi, eax
jmp 0x100320be
xor edi, edi
mov eax, dword [edi]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 4]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 8]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x10]
lea eax, [esi + 8]
push eax
push 0
push edi
push 0x100324e0
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x14]
push 0
push 0
mov dword [esi + 0x24], edx
call fcn.1011d9a7
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
jne 0x10032135
push 0x65f
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
xor esi, esi
call fcn.1011baa9
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x139f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10033bc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x10033bfa
call fcn.1001bf90
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x10033c4e
call fcn.1001bf90
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10033eb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [0x101b2070]
xor eax, esp
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esi + 2], eax
mov dword [esi + 6], eax
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], eax
mov dword [esi + 0x12], eax
push ebx
mov dword [esi + 0x16], eax
mov dword [esp + 0x10], eax
mov word [esi + 0x1a], ax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
movzx eax, word [esi]
push edi
push 3
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x38]
lea edx, [esp + 0x3c]
push eax
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x3c], edx
call fcn.100354d0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x10033f56
push eax
call fcn.1011bc28
add esp, 4
test edi, edi
je 0x10033f77
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0xc]
xor edi, edi
mov eax, ebx
test ebx, ebx
je 0x10033faf
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x10033f99
cmp ecx, 0x17
je 0x10033f99
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x10033f83
jmp 0x10033faf
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push esi
call fcn.1011fc70
add esp, 0xc
mov edi, 1
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x10033fde
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xbc]
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret
Function at 0x100346e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebx + 4]
push edi
mov edi, eax
test esi, esi
je 0x100346f8
call fcn.10035630
jmp 0x10034711
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10034768
call fcn.1001bf90
test eax, eax
js 0x1003477a
mov ecx, dword [ebx]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10034740
call fcn.1001bf90
test eax, eax
js 0x1003477a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1003474b
test eax, eax
je 0x1003476c
xor ecx, ecx
cmp edx, ecx
ja 0x1003476c
jb 0x10034758
cmp eax, dword [ebp + 0xc]
ja 0x1003476c
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
call fcn.10033bc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebx], eax
jmp 0x1003471f
or eax, edx
mov eax, 0x800703ee
je 0x1003477a
mov eax, 0x800700df
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x88]
push esi
xor esi, esi
push esi
push eax
mov dword [eax + 0x34], edx
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov edx, dword [eax + 0x34]
push 1
lea ecx, [eax + 0x1c]
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [eax + 0x18], 4
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10034896
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x100348a5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor edx, edx
lea ecx, [eax + 0x34]
xor esi, esi
cmp word [ecx], 2
push esi
setne dl
push eax
mov dword [eax + 0x18], 3
mov dword [ebp - 4], esi
add eax, 0x1c
dec edx
and edx, 0xfffffff4
add edx, 0x1c
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x34]
push edx
mov edx, dword [ebp + 8]
push ecx
push esi
lea ecx, [ebp - 4]
push ecx
mov dword [eax + 0xc], 2
push 1
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x10034907
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x10034916
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10034920
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea edx, [eax + 0x34]
xor ecx, ecx
push esi
xor ebx, ebx
cmp word [edx], 2
push edi
setne cl
mov dword [eax + 0x18], 4
lea esi, [eax + 0x50]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
lea edi, [ecx - 1]
xor ecx, ecx
push ecx
push eax
and edi, 0xfffffff4
push esi
add edi, 0x1c
mov dword [esi], edi
mov dword [eax + 0x36], ecx
mov dword [eax + 0x3a], ecx
mov dword [eax + 0x3e], ecx
push edx
mov dword [eax + 0x42], ecx
mov dword [eax + 0x46], ecx
mov dword [eax + 0x4a], ecx
mov word [eax + 0x4e], cx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 1
add eax, 0x1c
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x10034998
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10038850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
jbe 0x10038999
push esi
push edi
push 0
push 0
push ebx
push 0x100399d0
push 0
push 0
call fcn.1011d9a7
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x1003897c
mov eax, dword [ebx + 0x78]
lea esi, [ebx + 0x74]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x10038906
mov edx, dword [esi]
cmp edx, ecx
ja 0x10038906
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x100388f6
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10038972
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x100388f6
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x100388e5
xor ecx, ecx
jmp 0x100388e7
add ecx, edx
cmp ecx, eax
jae 0x100388ed
mov ecx, eax
push ecx
call fcn.100373b0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x10038952
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x10038952
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x10038949
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10038972
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x10038949
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x10038938
xor ecx, ecx
jmp 0x1003893a
add ecx, edx
cmp ecx, eax
jae 0x10038940
mov ecx, eax
push ecx
call fcn.100373b0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x10038952
mov dword [eax], edi
mov eax, dword [ebp - 8]
add dword [esi + 4], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 0x10]
jb 0x10038874
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.1011ba3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebx + 0x54], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov dword [ebp - 0xc], 0
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10038fa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ecx + 0x17c]
test edi, edi
je 0x10039036
mov eax, dword [ebp + 8]
dec eax
xor edx, edx
div dword [ecx + 0x178]
mov ecx, dword [ecx + 0x1bc]
push esi
pop esi
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x10039036
mov edx, dword [edi + edx*4]
mov eax, 0xf
cmp eax, edx
sbb eax, eax
neg eax
cmp eax, 1
jne 0x10039036
test edx, edx
je 0x10039036
cmp dword [edx + 0x30], 0
je 0x10039036
mov edx, dword [edx + 0x88]
xor ecx, ecx
lea eax, [ebp - 4]
mov word [ebp - 0x20], cx
push eax
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 4], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10039036
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edx
push eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x20]
call fcn.100343d0
add esp, 8
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10039ca0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x7010
mov ebx, ecx
mov ecx, dword [edi + 0x88]
push 0xffff
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, edi
mov dword [edi + 0x48], 1
call fcn.100381f0
cmp eax, 2
mov eax, edi
je 0x10039cf0
push esi
push ebx
call fcn.1003a160
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push ebx
call fcn.10038c50
push esi
lea edi, [ebx + 0xb0]
call fcn.10041140
test eax, eax
jne 0x10039d1a
mov edx, dword [esi + 0x14]
push esi
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039ee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137288
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x10039f13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x4c]
test edx, edx
jne 0x1003a009
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
je 0x10039f35
cmp eax, 1
jne 0x1003a009
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
cmp dword [ebx + 0x1c], eax
lea esi, [ebx + 0x1c]
jne 0x1003a00c
mov edx, dword [ebx + 0x34]
push edi
push edi
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 1
push esi
push edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10039f78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x10039f88
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10039f83
mov dword [esi], eax
jmp 0x10039f88
mov edi, 0x2775
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x1003a03a
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x30], 0
mov edi, 0xff
je 0x10039ff1
add ebx, 0x54
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [eax + 0x30], 0
je 0x10039fe3
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
call edx
mov edi, eax
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x1e
jl 0x10039f10
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x1003a01a
cmp eax, 1
jne 0x1003a081
test ecx, ecx
je 0x1003a097
cmp ecx, 0x2733
je 0x1003a097
cmp ecx, 0x2775
jne 0x1003a03f
mov eax, dword [ebp + 8]
push 0
push 0
push 1
push eax
jmp 0x1003a058
mov ecx, dword [ebp - 0x10]
jmp 0x1003a00c
cmp ecx, 0x2736
je 0x1003a060
cmp ecx, 0x3e3
je 0x1003a060
push ecx
mov ecx, dword [ebp + 8]
push 4
push 2
push ecx
mov eax, dword [ebp + 0xc]
call fcn.10038c50
mov edi, dword [ebp + 8]
push ebx
add edi, 0xb0
call fcn.10041140
test eax, eax
jne 0x1003a081
mov edx, dword [ebx + 0x14]
push ebx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10