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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
jle 0x1000613f
mov eax, 0x81020409
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov ecx, dword [ebp + 8]
mov eax, esi
and eax, 0x1ff
mov dl, byte [eax + 0x101f3e28]
add dl, byte [eax + 0x101f3628]
add dl, byte [esi + edi]
xor dl, byte [eax + 0x101f3220]
sub dl, byte [eax + 0x101f3828]
xor dl, byte [eax + 0x101f3a28]
sub dl, byte [eax + 0x101f3428]
add dl, byte [eax + 0x101f3c28]
xor dl, byte [eax + 0x101f4028]
mov eax, esi
and eax, 7
mov byte [esi + edi], dl
add ecx, eax
mov al, byte [ebp - 4]
add al, al
add al, bl
sub dl, byte [ecx]
mov byte [esi + edi], dl
xor al, dl
xor al, byte [ecx]
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x100060e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [0x1022b730], edi
mov dword [0x1022b734], ecx
nop dword [eax]
push 0x5851f42d
mov edx, ecx
xor eax, eax
push 0x4c957f2d
shr edx, 0x1e
xor eax, ecx
xor edx, edi
push eax
push edx
call fcn.10168020
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
add edi, eax
mov dword [esi*8 + 0x1022b730], edi
adc ecx, edx
mov dword [esi*8 + 0x1022b734], ecx
inc esi
cmp esi, 0x138
jl 0x10006a90
pop edi
mov dword [0x1022b728], 0x138
pop esi
pop ebp
ret 0x10
Function at 0x10008230
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
mov eax, 0x40
push edi
mov edi, ecx
mov edx, dword [esi]
and edx, 0x3f
mov byte [edx + esi + 0x18], 0x80
inc edx
sub eax, edx
cmp eax, 8
jae 0x10008271
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.1016ca40
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.100077b0
add esp, 0x10
mov eax, 0x40
xor edx, edx
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.1016ca40
shl dword [esi], 3
lea edx, [esi + 0x18]
movzx eax, byte [esi]
mov ecx, esi
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x52], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x53], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
movzx eax, byte [esi + 6]
mov byte [esi + 0x56], al
movzx eax, byte [esi + 7]
push 0x40
mov byte [esi + 0x57], al
call fcn.100077b0
movzx eax, byte [esi + 8]
mov byte [edi], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 1], al
movzx eax, byte [esi + 0xa]
mov byte [edi + 2], al
movzx eax, byte [esi + 0xb]
mov byte [edi + 3], al
movzx eax, byte [esi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 5], al
movzx eax, byte [esi + 0xe]
mov byte [edi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [edi + 7], al
movzx eax, byte [esi + 0x10]
mov byte [edi + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [edi + 9], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [edi + 0xd], al
movzx eax, byte [esi + 0x16]
push 0x98
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x17]
push 0
push esi
mov byte [edi + 0xf], al
call fcn.1016ca40
add esp, 0x1c
pop edi
pop esi
ret

Function at 0x10009220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1003cd65
Function at 0x1000dae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6608
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1021afe8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000dc0e
cmp byte [ebx + 0x3d], 0
je 0x1000dc0e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000db39
xor al, al
jmp 0x1000dc10
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100064d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000db9f
sub eax, 1
je 0x1000dba3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1000dbf6
xor bl, bl
jmp 0x1000dbf8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1000dbd8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10173f32
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1000db9b
cmp byte [ebx + 0x3d], 0
je 0x1000dbf6
test esi, esi
jne 0x1000db61
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.10006c80
jmp 0x1000db5e
mov bl, 1
cmp ecx, 0x10
jb 0x1000dc0a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10006ae0
mov al, bl
jmp 0x1000dc10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1016700d
mov esp, ebp
pop ebp
ret

Function at 0x1000e7b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1022b6f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x1000e7ff
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push method.CWinThread.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ebe0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a67e9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea ebx, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [ebx], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.1000f920
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.1000e3c0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1000ed6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [0x10227880]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1022b680]
cmp ecx, dword [edx + 4]
jle 0x1000ed11
push 0x1022b680
call fcn.1016716f
add esp, 4
cmp dword [0x1022b680], 0xffffffff
jne 0x1000ed11
call fcn.10004d60
push 0x1022b680
call fcn.10167130
add esp, 4
mov ecx, dword [0x1022b6a8]
mov eax, dword [0x1022b6ac]
mov dword [ebp - 0x1c], edi
cmp ecx, 0x25c5e09b
jne 0x1000ed2e
cmp eax, 0x8fafd21e
je 0x1000ed3d
cmp ecx, 0x257edf0d
jne 0x1000ed44
cmp eax, 0xb2ab117a
jne 0x1000ed44
test edi, edi
setne al
jmp 0x1000ed54
mov eax, dword [0x1022b6a0]
mov ecx, 0x1022b6a0
push edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], 0x1022b6a0
test al, al
je 0x1000ed6f
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.10005a10
cmp byte [ebp + 0x10], 0
je 0x1000edbe
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xc
call fcn.10030fd4
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x1000ed9e
push ecx
push esi
mov ecx, eax
call fcn.1000fef0
mov ebx, eax
jmp 0x1000eda0
xor ebx, ebx
mov edi, dword [esi + 0x60]
test edi, edi
je 0x1000edbb
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push edi
call fcn.101675c6
add esp, 8
mov dword [esi + 0x60], ebx
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 0xc
Function at 0x1000f1b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6850
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x1000f269
mov ecx, esi
call fcn.1000f3c0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10227880]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1022b680]
cmp eax, dword [ecx + 4]
jle 0x1000f240
push 0x1022b680
call fcn.1016716f
add esp, 4
cmp dword [0x1022b680], 0xffffffff
jne 0x1000f240
call fcn.10004d60
push 0x1022b680
call fcn.10167130
add esp, 4
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0x1022b6a0
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 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
call fcn.1016a386
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x1022cabc]
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x1022cabc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.1000f430
test eax, eax
je 0x1000f301
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.1000f430
test eax, eax
jne 0x1000f2e5
push dword [ebp - 0x10]
push dword [0x1022cabc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x3c]
test eax, eax
je 0x1000f331
push eax
call fcn.1003100b
add esp, 4
inc esi
cmp esi, 3
jl 0x1000f320
lea eax, [ebp - 0x2c]
push eax
call fcn.1016a3c6
add esp, 4
mov eax, edi
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
Function at 0x10010d80
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, edx
lea ebx, [esi + 3]
shr ebx, 2
test ecx, ecx
je 0x10010c92
mov eax, dword [ecx]
test eax, eax
je 0x10010c92
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x10010c89
mov byte [eax + esi], dl
pop esi
pop ebx
ret
push eax
call fcn.1003100b
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.10030fd4
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x10010cb7
movzx eax, bl
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
xor eax, eax
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
push ebp
mov ebp, esp
push dword [0x1022cabc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010d9f
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
pop ebp
jmp 0x10010c60
xor ecx, ecx
mov edx, dword [ebp + 8]
pop ebp
jmp 0x10010c60

Function at 0x10010db0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x1022cabc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010dc8
mov edx, dword [eax + 4]
jmp 0x10010dca
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x10010de9
test edx, edx
je 0x10010de9
cmp dword [edx], 0
jne 0x10010de9
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.1003100b
add esp, 4
pop ebp
ret

Function at 0x10011430
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1022cabc]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001145b
nop dword [eax]
cmp dword [eax], esi
je 0x1001145d
mov eax, dword [eax + 8]
test eax, eax
jne 0x10011450
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1001145b
pop esi
jmp fcn.10010cd0
Function at 0x10011930
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
cmp dword [esi], 0x40
jne 0x10011963
mov edx, 0x2745
lea ecx, [ebp - 0x20]
call fcn.10010a20
mov edx, dword [ebp - 4]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
cmp byte [esi + 4], 0
jne 0x10011a3f
cmp dword [ebp + 0xc], 0
je 0x100119ee
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x100119ed
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp + 0x18], 0
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push edx
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi]
jbe 0x100119d9
mov edx, 0x2726
lea ecx, [ebp - 0x20]
call fcn.10010a20
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x100119ed
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.1016cf70
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [edi], eax
pop edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x10011a1c
mov edx, 0x2719
lea ecx, [ebp - 0x20]
call fcn.10010a20
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.10011820
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10011a50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp ebx, 0xffffffff
je 0x10011b95
cmp byte [ebp + 8], 0
je 0x10011aa4
test byte [edi], 8
je 0x10011aa4
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.10004da0
or byte [edi], 8
lea eax, [ebp - 4]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x10]
setne dl
call fcn.10011820
push esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.10011820
test esi, esi
je 0x10011b43
mov edx, 0x2733
lea ecx, [ebp - 0x1c]
call fcn.10010a20
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
mov eax, dword [ecx]
movq qword [ebp - 0x10], xmm0
cmp eax, dword [ebp - 0x10]
jne 0x10011b0c
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
mov ecx, dword [ecx + 8]
jne 0x10011afc
cmp ecx, edx
sete al
test al, al
jne 0x10011b5c
jmp 0x10011b0c
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x10011b0c
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x10011b5c
mov edx, 0x4d5
lea ecx, [ebp - 0x1c]
call fcn.10010a20
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
mov eax, dword [ecx]
movq qword [ebp - 0x10], xmm0
cmp eax, dword [ebp - 0x10]
jne 0x10011b43
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
mov ecx, dword [ecx + 8]
jne 0x10011b4c
cmp ecx, edx
sete al
test al, al
jne 0x10011b5c
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x10011b43
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
jne 0x10011b43
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [edi], 0xfc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.10011820
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, dword [ebp + 0x10]
mov dl, 1
mov ecx, esi
mov edi, eax
call fcn.10011820
mov ecx, dword [esi]
cmp ecx, 0x40
jne 0x10011bdf
mov edx, 0x2746
jmp 0x10011bec
cmp ecx, 0x4d2
jne 0x10011c02
mov edx, 0x274d
lea ecx, [ebp - 0x10]
call fcn.10010a20
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test edi, edi
je 0x10011c0f
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 8]
mov dword [esi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x10011c2d
cmp eax, 0x8fafd21e
je 0x10011c3c
cmp ecx, 0x257edf0d
jne 0x10011c4d
cmp eax, 0xb2ab117a
jne 0x10011c4d
xor al, al
mov dword [esi + 8], edi
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov dword [esi + 8], edi
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100123c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0xffffffff
je 0x10012438
mov edx, 1
lea ecx, [ebp - 0x1c]
call fcn.10010ad0
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 8]
movq xmm0, qword [esi]
movq qword [edx], xmm0
mov ecx, dword [esi + 8]
mov dword [edx + 8], ecx
movq xmm0, qword [esi]
mov ecx, dword [esi + 8]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 1
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, dword [ebp + 0x1c]
mov esi, eax
cmp esi, 0xffffffff
mov ecx, ebx
sete dl
call fcn.10011820
cmp esi, 0xffffffff
jne 0x10012468
or esi, esi
jmp 0x10012486
cmp dword [ebp + 0x10], 0x17
jne 0x10012486
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp + 0x1c], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x1001249e
movq xmm0, qword [ebx]
mov ecx, dword [ebx + 8]
jmp 0x10012504
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push ebx
push esi
push eax
mov ecx, dword [ecx + 4]
call fcn.100112f0
cmp byte [eax + 4], 0
jne 0x10012495
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x1c], 0xffffffff
mov dword [edi], esi
sub eax, 1
je 0x100124d7
sub eax, 1
je 0x100124d1
mov byte [edi + 4], 0
jmp 0x100124db
mov byte [edi + 4], 0x20
jmp 0x100124db
mov byte [edi + 4], 0x10
push dword [ebp + 8]
push ecx
lea ecx, [edi + 8]
call fcn.100158b0
lea ecx, [ebp - 0x1c]
call fcn.10004da0
movq xmm0, qword [eax]
movq qword [ebx], xmm0
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 8]
movq qword [esi], xmm0
mov dword [esi + 8], ecx
lea ecx, [ebp + 0x1c]
call fcn.10011dc0
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 0x18
Function at 0x10012610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x1001264e
mov ecx, dword [edi + 4]
push 0
push 0x2719
push dword [ebp + 0x28]
call fcn.100114e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp byte [ebp + 0xc], 0
je 0x1001266c
mov ecx, dword [edi + 4]
push 0
push 1
push dword [ebp + 0x28]
call fcn.100114e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [esp + 0x14]
call fcn.10004da0
mov esi, dword [ebp + 0x14]
push 1
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
lea ecx, [esp + 0x14]
cmp ebx, 0xffffffff
sete dl
call fcn.10011820
cmp ebx, 0xffffffff
jne 0x100126a5
or ebx, ebx
jmp 0x100126c4
cmp esi, 0x17
jne 0x100126c4
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.10011e40
mov dword [esi], ebx
cmp ebx, 0xffffffff
jne 0x100126ef
push ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0x28]
call fcn.100115a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push dword [ebp + 0x28]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, dword [ebp + 0x24]
push eax
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0x20]
push ebx
push dword [eax]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1001273f
cmp eax, 0x3e5
je 0x1001273f
mov ecx, dword [edi + 4]
push esi
push eax
mov eax, dword [ebp + 0x28]
push eax
call fcn.100114e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x28]
mov ecx, dword [edi + 4]
push eax
call fcn.10011470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24