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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
jbe 0x10038181
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, 1
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10038460
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1003828c
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [ebx + 0xc]
imul edi, edi, 0x1000193
and edi, dword [ebx + 0x18]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x1003820f
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10038282
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x10038249
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x10038241
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x1003827f
cmp edi, edx
je 0x1003825c
nop dword [eax]
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x10038295
cmp edi, edx
jne 0x10038250
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x100381c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1003827f
Function at 0x100382c0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebx + 8]
cmp ecx, eax
jbe 0x100382fe
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x101ef384]
or eax, 1
mov dword [ebp - 4], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x101ef38c
lea eax, [edi + edi]
push eax
call fcn.10004490
lea eax, [edi - 1]
mov dword [0x101ef39c], edi
mov dword [0x101ef398], eax
mov eax, dword [0x101ef384]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10038428
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x101ef38c]
imul edi, edi, 0x1000193
and edi, dword [0x101ef398]
lea edx, [edx + edi*8]
mov dword [ebp - 8], edx
cmp dword [edx], esi
jne 0x10038399
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1003841e
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x100383dc
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x100383d4
mov edx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x1003841e
mov esi, dword [ebp - 8]
cmp dword [esi], edx
je 0x100383f2
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10038433
mov esi, dword [ebp - 8]
cmp dword [esi], edx
jne 0x100383e3
mov esi, dword [eax + 4]
mov dword [ebp - 0xc], esi
mov dword [esi], ecx
mov edi, dword [ecx + 4]
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x10]
mov dword [edi], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], esi
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov esi, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x10038343
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov dword [edx], ecx
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x10]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x1003841b
Function at 0x10039780
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101464a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x18]
imul ebx, ecx, 0x1000193
mov ecx, esi
push ebx
push edi
push eax
call fcn.1000c220
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100398a0
cmp dword [esi + 8], 0xfffffff
jne 0x10039801
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x1c], 0
call fcn.1006cc8f
mov dword [ebp - 0x1c], eax
add esp, 4
lea ecx, [eax + 8]
mov eax, dword [edi]
mov dword [ebp + 8], ecx
mov dword [ecx], eax
mov byte [ecx + 4], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f9d0]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f9d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
jbe 0x10039891
mov ecx, esi
call fcn.1000c140
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.1000c220
mov ecx, dword [eax]
jmp 0x10039894
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ecx
push ebx
mov ecx, esi
call fcn.1000c1a0
mov ecx, dword [ebp - 0xc]
add eax, 0xc
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10039bf0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10144e25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x14]
imul ebx, ecx, 0x1000193
mov ecx, esi
push ebx
push edi
push eax
call fcn.1000c220
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10039c75
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 8], 0xfffffff
jne 0x10039c89
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [esi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x18], 0
call fcn.1006cc8f
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x18], eax
add eax, 8
mov dword [ebp + 0xc], eax
mov dword [eax], ecx
mov byte [eax + 4], 0
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x1c]
inc ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1017f9d0]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f9d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
jbe 0x10039d19
mov ecx, esi
call fcn.1000c140
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1000c220
mov ecx, dword [eax]
jmp 0x10039d1c
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push ebx
mov ecx, esi
call fcn.1000c1a0
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x1003c280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 8]
push esi
mov esi, dword [ebp + 8]
cmp esi, edx
jb 0x1003c2ba
mov eax, dword [ecx]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*4]
cmp esi, eax
ja 0x1003c2ba
sub esi, edx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
pop esi
pop ebp
ret 4
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1003c5a0
Capabilities:
Terminate process

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jg 0x1003c5b0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [eax + eax*8]
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
add eax, 0xffffffdc
ret

Function at 0x1003c870
Capabilities:
Terminate process

Disassembly:
mov edx, dword [ecx]
test edx, edx
jg 0x1003c87e
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [ecx + 8]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
ret
Function at 0x1003c9e0
Capabilities:
Terminate process

Disassembly:
mov edx, dword [ecx]
test edx, edx
jg 0x1003c9ee
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [ecx + 8]
shl edx, 5
add eax, 0xffffffe0
add eax, edx
ret

Function at 0x1003ca00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
cmp esi, ebx
jb 0x1003caf9
mov ecx, dword [edi]
lea eax, [ebx + ecx*8]
cmp esi, eax
ja 0x1003caf9
mov eax, dword [edi + 4]
sub esi, ebx
sar esi, 3
cmp ecx, eax
jne 0x1003caba
inc ecx
test eax, eax
je 0x1003ca44
cdq
sub eax, edx
mov edx, dword [edi + 4]
sar eax, 1
add eax, edx
jmp 0x1003ca4c
mov edx, dword [edi + 4]
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jle 0x1003caba
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1003ca67
inc dword [eax + 0x36c]
lea eax, [ecx*8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [edi + 8]
test eax, eax
je 0x1003cab1
mov ecx, dword [edi]
shl ecx, 3
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 8]
add esp, 0xc
test ecx, ecx
je 0x1003caa7
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1003caa7
dec dword [eax + 0x36c]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 8], ebx
mov dword [edi + 4], eax
mov ecx, dword [edi]
cmp esi, ecx
jge 0x1003cad6
sub ecx, esi
lea eax, [ebx + esi*8]
shl ecx, 3
push ecx
push eax
add eax, 8
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [ebp + 0xc]
shl esi, 3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 8]
mov dword [esi + eax], ecx
mov dword [esi + eax + 4], edx
inc dword [edi]
mov eax, dword [edi + 8]
pop edi
add eax, esi
pop esi
pop ebx
pop ebp
ret 8
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x10041a10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014676b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [esi]
push 0x10
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1006cc8f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push dword [edi + 4]
sar eax, 2
push eax
call fcn.10004490
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov esi, dword [eax]
cmp esi, eax
je 0x10041bd0
nop word [eax + eax]
movzx eax, byte [esi + 8]
lea ebx, [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.1000c220
cmp dword [ebp - 0x20], 0
jne 0x10041bc5
cmp dword [edi + 8], 0xfffffff
je 0x10041be5
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
push 0x10
mov dword [ebp - 0x28], 0
call fcn.1006cc8f
mov ecx, dword [ebx]
add esp, 4
mov edx, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
add eax, 8
mov dword [ebp - 0x10], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [ebp - 4], 3
mov eax, dword [edi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f9d0]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1017f9d0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
jbe 0x10041ba8
mov ecx, edi
call fcn.1000c140
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push ebx
push dword [ebp - 0x10]
mov ecx, edi
push eax
call fcn.1000c220
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x10041bae
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
push dword [ebp - 0x14]
mov dword [ebp - 0x28], 0
push ecx
push ebx
mov ecx, edi
call fcn.1000c1a0
mov byte [ebp - 4], 1
mov esi, dword [esi]
cmp esi, dword [ebp - 0x18]
jne 0x10041ab0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x10044160
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x3a8], 2
je fcn.10044110
mov al, 1
ret
Function at 0x10045960
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 0x4000
push dword [edi + 0x63c]
call fcn.1004d4f0
mov eax, dword [edi + 0x120]
add esp, 0x10
test eax, eax
je 0x100459b4
cmp byte [edi + 0x4690], 0
jne 0x100459b4
push dword [edi + 0x63c]
push 0x1014bc68
push 0x100
push eax
call fcn.1004d400
add esp, 0x10
mov byte [edi + 0x4690], 1
cmp byte [edi + 0x350], 0
je 0x10045a3d
mov ecx, dword [edi + 0x63c]
push esi
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100459d0
sub esi, edx
cmp esi, 0x3fff
jae 0x100459f0
mov byte [ecx + esi], 0xa
inc esi
mov eax, dword [edi + 0x63c]
mov byte [esi + eax], 0
mov eax, dword [edi + 0x190]
push ebx
mov ebx, dword [edi + 0x63c]
test eax, eax
je 0x10045a15
push dword [edi + 0x11c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop ebx
pop esi
pop edi
ret
push dword [edi + 0x118]
push 1
push 2
push 0x1014bc50
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x118]
push 1
push esi
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop ebx
pop esi
pop edi
ret

Function at 0x10045a40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x1018b080]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x10045b09
cmp byte [edi + 0x350], 0
je 0x10045b09
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.1004d4f0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10045aa0
mov eax, dword [edi + 0x190]
sub esi, ecx
test eax, eax
je 0x10045ade
push dword [edi + 0x11c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.1006d5e4
add esp, 0x808
ret
push dword [edi + 0x118]
push 1
push 2
push 0x1014bc50
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x118]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.1006d5e4
add esp, 0x808
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.100461a0
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x10045df6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10045dce
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.1004f480
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10045960
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4694], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100461a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x3a0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x10046250
cmp dword [ecx + edx*4 + 0x1a4], 0x10045cd0
jne 0x10046250
cmp dword [esi], 0
je 0x100461e7
test edi, edi
je 0x10046250
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.100452e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x10046250
test al, 1
je 0x10046250
cmp dword [esi], 0
jne 0x10046239
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x10046239
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10046250
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x10046260
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x10046289
push dword [esi + 0x11c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x100462c2
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x1014bc50
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [esi + 0x118]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
xor eax, eax
pop esi
ret

Function at 0x10046c90
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10046cd8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1004f480
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10045a40
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10045a40
add esp, 8
pop edi
pop esi
ret
Function at 0x10046de0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x1018b080]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push edi
mov edi, dword [esp + 0x114]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x10046fd3
cmp byte [edi + 0x366], 0
push esi
jne 0x10046fc9
cmp byte [edi + 0x382], 0
jne 0x10046fc9
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x10], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10046e85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.1004f480
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10045960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006d5e4
add esp, 0x108
ret
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10046eed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.1004f480
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10045960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006d5e4
add esp, 0x108
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [esp + 0x94]
push esi
push eax
call fcn.100474c0
add esp, 0xc
test al, al
jne 0x10046f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1004f480
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10045960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006d5e4
add esp, 0x108
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups 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 + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100474c0
add esp, 0xc
test al, al
jne 0x10046fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1004f480
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10045960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006d5e4
add esp, 0x108
ret
push edi
call fcn.10046a20
add esp, 4
pop esi
mov ecx, dword [esp + 0x10c]
pop edi
pop ebx
xor ecx, esp
call fcn.1006d5e4
add esp, 0x108
ret