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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f47d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, esi
je 0x1001ffbc
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov edi, edx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0xc
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.101354f4
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
test bl, bl
jne 0x1001fef2
mov eax, dword [ebp - 0x20]
cmp edi, esi
jne 0x1001feb4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x1001ffad
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x1001ffad
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x1001ff04
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x1001ff07
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
cmp edi, esi
je 0x1001ffad
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor ecx, eax
movzx eax, byte [edi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0xc
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.101354f4
mov eax, dword [ebp - 0x10]
add esp, 8
dec dword [eax + 8]
test bl, bl
jne 0x1001ff91
cmp edi, esi
je 0x1001ffa8
mov eax, dword [ebp + 0xc]
jmp 0x1001ff67
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp edi, esi
je 0x1001ffad
mov edx, dword [ebp - 0x10]
jmp 0x1001ff20
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [edi + 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10020210
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f4ed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x100203b0
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.1001fc00
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x1002036c
nop dword [eax + eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x100202f1
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1002035f
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x10020328
mov eax, dword [eax]
cmp eax, ecx
je 0x10020320
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x1002035f
cmp ebx, eax
je 0x1002033c
nop dword [eax]
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x1002038e
cmp ebx, eax
jne 0x10020330
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 0x14]
mov ecx, edx
cmp edx, esi
jne 0x100202a0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp + 8], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x1002035f
push str.invalid_hash_bucket_count
call fcn.10134ef4
int3
Function at 0x100203c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f52d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.10020620
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10020453
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 ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0x15555555
je 0x1002059d
lea eax, [edi + 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x14], 0
call fcn.10135525
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi + 8], ecx
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc ecx
mov eax, ebx
movss xmm3, dword [edi]
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
movd xmm1, ebx
addsd xmm0, qword [ecx*8 + 0x1023f350]
cvtdq2pd xmm1, xmm1
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x1023f350]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1002052d
divss xmm0, xmm3
call fcn.1001f7b0
call fcn.10135e60
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1002050f
cmp ebx, 0x200
jae 0x1002050d
shl ebx, 3
cmp ebx, ecx
jae 0x1002050f
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.10020210
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10020620
mov edx, dword [eax]
jmp 0x10020530
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 8]
mov ebx, dword [edx + 4]
inc eax
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x10020566
mov dword [ecx + eax*8], esi
jmp 0x10020575
cmp edi, edx
jne 0x1002056f
mov dword [ecx + eax*8], esi
jmp 0x10020579
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10020579
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10134ef4
int3
Function at 0x10020a20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f601
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10253890]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10254784]
cmp eax, dword [ecx + 4]
jg 0x10020a75
mov eax, dword [0x10254780]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x10254784
call fcn.10135104
add esp, 4
cmp dword [0x10254784], 0xffffffff
jne 0x10020a61
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
cmp eax, 0x200
jae 0x10020ac3
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
jmp 0x10020aca
mov eax, 0x200
jmp 0x10020aca
mov dword [ebp - 4], 0xffffffff
push 0x10254784
mov dword [0x10254780], eax
call fcn.101350ba
add esp, 4
jmp 0x10020a61
Function at 0x100231a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015fc9d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x10023279
lea eax, [edi + 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov byte [ebp - 0x10], 1
test eax, eax
jne 0x100231fa
mov eax, dword [edi + 0x30]
push eax
push 0
mov ecx, edi
call fcn.10022ee0
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x1002324c
test esi, esi
js 0x1002328d
cmp esi, dword [edi + 0xc]
jge 0x1002328d
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 8], 0x103
jne 0x1002323e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x10023212
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.100019f0
int3
Function at 0x10024490
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10160090
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x1024ed04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], edx
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.10024370
mov word [edi], ax
test ax, ax
je 0x100244eb
mov edx, dword [ebp - 0x9c]
mov ecx, esi
push edi
call fcn.10024420
add esp, 4
jmp 0x100245cc
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
movups xmmword [edi + 2], xmm0
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xbc], 0x100
movq qword [edi + 0x12], xmm0
mov word [edi + 0x1a], 0
movzx eax, word [edi]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x90]
push 3
push esi
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
mov dword [ebp - 0x94], eax
call fcn.10024ea0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0
push dword [ebp - 0x94]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x10024591
push eax
call fcn.10139093
add esp, 4
test esi, esi
je 0x10024598
push esi
jmp 0x100245c4
mov esi, dword [ebp - 0x98]
mov eax, esi
test eax, eax
je 0x100245b8
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x100245e7
cmp ecx, 0x17
je 0x100245e7
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x100245a4
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10134fc2
mov esp, ebp
pop ebp
ret
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call fcn.10136fe0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push dword [ebp - 0x9c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 2], ax
mov eax, 1
jmp 0x100245cc
Function at 0x10024b40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, edx
push esi
push edi
mov edi, ecx
mov esi, dword [ebx + 4]
test esi, esi
je 0x10024ba3
cmp dword [esi], 0
je 0x10024b98
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10024bc1
push str.CreateFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10024b9e
push 0
push 0
push dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push bind
push edi
call eax
jmp 0x10024bbc
cmp dword [esi + 4], 0
jne 0x10024ba3
or eax, 0xffffffff
jmp 0x10024bbc
push 0
push 0x80
push 3
push 0
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10024bd1
call fcn.100229f0
test eax, eax
jns 0x10024bd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [esp + 0x14]
push eax
push dword [ebx]
call edi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10024bfc
call fcn.100229f0
test eax, eax
js 0x10024cc0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x10024c0e
test eax, eax
je 0x10024cb2
test ecx, ecx
ja 0x10024cb2
jb 0x10024c1f
cmp eax, dword [ebp + 0xc]
ja 0x10024cb2
mov esi, dword [ebx]
lea eax, [esp + 0x14]
push eax
push esi
call edi
push 0
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x10024c57
call fcn.100229f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push 0
push eax
push 0
push 0
push 4
push ecx
mov dword [edi + 4], eax
mov dword [edi + 0x18], 4
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x10024ca9
call fcn.100229f0
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, ecx
mov eax, 0x800703ee
je 0x10024cc0
mov eax, 0x800700df
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10024cd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x10024cf2
lea eax, [ebp - 8]
jmp 0x10024cfa
cmp edx, 1
jne 0x10024d28
lea eax, [ebp - 4]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 2
jne 0x10024d5e
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 4]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call esi
push 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push ebx
call esi
or eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10025800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f5cd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x14c]
test eax, eax
je 0x1002597b
lea eax, [edi + 0x174]
push eax
lea ecx, [ebp - 0x10]
call fcn.100209c0
mov dword [ebp - 4], 0
cmp dword [edi + 0x54], 3
jne 0x10025959
mov dword [edi + 0x54], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [edi]
call dword [eax + 0x150]
push dword [ebp + 8]
mov ecx, edi
call fcn.10025a80
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10025946
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x50], eax
test eax, eax
jne 0x100258c0
call ebx
push eax
mov dword [edi + 0x58], 7
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x50], 0
je 0x10025946
xor esi, esi
cmp dword [edi + 0x14], esi
jbe 0x10025907
push 0
push 0
push edi
push 0x100269b0
push 0
push 0
call fcn.1013df2b
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
je 0x10025936
mov edx, dword [edi + 0x7c]
lea ecx, [edi + 0x78]
cmp edx, dword [ecx + 8]
je 0x100258f7
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x10025901
lea eax, [ebp + 8]
push eax
push edx
call fcn.10025010
inc esi
cmp esi, dword [edi + 0x14]
jb 0x100258c7
mov eax, dword [ebp + 0xc]
push dword [edi + 0x3c]
mov dword [edi + 0x4c], eax
mov dword [edi + 0x54], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
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 8
call ebx
push eax
mov dword [edi + 0x58], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1002597b
push 0x139f
mov dword [edi + 0x58], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
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 8
Function at 0x100260d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ecx + 0x17c]
test esi, esi
je 0x10026153
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
div dword [ecx + 0x178]
mov ecx, dword [ecx + 0x1bc]
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x10026153
mov ecx, 0xf
cmp ecx, dword [esi + edx*4]
sbb ecx, ecx
and ecx, dword [esi + edx*4]
je 0x10026153
cmp dword [ecx + 0x30], 0
je 0x10026153
xor eax, eax
mov dword [ebp - 4], 0x1c
mov word [ebp - 0x20], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x88]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10026153
push dword [ebp + 0x14]
lea edx, [ebp + 8]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.100249f0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10026fb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101603dd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor esi, esi
lea eax, [edi + 0x84]
push eax
call fcn.100209c0
mov dword [ebp - 4], esi
cmp dword [edi + 0x4c], esi
jne 0x1002705b
cmp dword [edi + 0x50], esi
jne 0x1002705b
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x50], 1
lea ecx, [edx + 0x1c]
mov eax, dword [ebx + 0x18]
xor ebx, ebx
push ebx
push edx
mov dword [ecx], eax
mov eax, dword [edi + 0x88]
mov dword [edx + 0x34], eax
mov dword [edx + 0x18], 4
lea edx, [ebp + 8]
push edx
lea edx, [ebp - 0x10]
mov dword [ebp + 8], ebx
push edx
push 1
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10027049
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
xor esi, esi
cmp ebx, 0x3e5
cmovne esi, ebx
mov ebx, dword [ebp - 0x14]
xor ecx, ecx
jmp 0x10027060
mov ecx, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
test esi, esi
je 0x10027093
cmp esi, 0x2736
je 0x10027097
cmp esi, 0x3e3
je 0x10027097
push esi
push 4
push 2
push edi
mov ecx, ebx
call fcn.10025ee0
jmp 0x10027097
test ecx, ecx
je 0x100270a5
push dword [ebp + 0xc]
lea ecx, [ebx + 0x94]
call fcn.100287e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8