joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032478
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14003253e
lea rcx, [0x140080c90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140080050]
jmp 0x140032502
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400324ff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140080050]
mov rdx, rsi
call fcn.14003da48
jmp 0x140032502
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400324cf
mov rdx, qword [0x14007dd38]
lea rcx, [0x140080050]
mov rdi, rdx
inc rdx
mov qword [0x14007dd38], rdx
lea edx, [rbx + 0x20]
call fcn.14003da90
lea rcx, [0x140080c90]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140032790
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x1400328f4
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x14006e984]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x1400328c0
cmp word [r14 + 2], di
je 0x1400328c0
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140032800
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14003282d
cmp word [rbx], bp
je 0x14003282d
add rbx, 2
jmp 0x140032810
inc edi
cmp edi, r12d
je 0x140032842
cmp word [rbx], bp
je 0x14003284b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140032810
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.14003e530
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x14003287a
mov ecx, r13d
call fcn.14003e790
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.14003e5a0
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x14003289e
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x1400328cd
test ax, ax
jne 0x1400328e0
inc edi
cmp edi, edx
je 0x1400328e6
test ax, ax
je 0x14003284e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x1400328c0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14003284e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.14003e7c0
Function at 0x1400331c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.14003e5a0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140068ed8
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x1400331f0
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003e800

Function at 0x140033270
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x1400332bd
mov ebx, 0x40
mov edx, r8d
mov ecx, ebx
call fcn.14003e5a0
mov rdx, rdi
mov rcx, rax
call fcn.140068f08
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400332a0
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003e800
cmp edx, 1
je 0x1400332db
cmp edx, 0x18
je 0x1400332db
cmp edx, 3
je 0x1400332d6
cmp edx, 0x19
je 0x1400332d6
cmp edx, 0xb
jne 0x1400332de
movzx edi, cx
jmp 0x1400332de
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.14003e5a0
lea rdx, [0x14006e988]
mov r8d, edi
mov rcx, rax
call fcn.140069d60
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003e800

Function at 0x1400337b4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140080d00]
call fcn.14003cd64
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x1400338b1
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14003380b
add rax, 2
cmp word [rax], 0x20
je 0x140033801
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140033849
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140033889
cmp cx, r9w
je 0x14003383b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140033829
cmp word [rax], bp
je 0x140033889
mov rcx, rax
add rax, 2
jmp 0x140033891
test dx, dx
je 0x14003388e
mov rbx, rax
cmp dx, 0x20
je 0x14003383b
add rax, 2
cmp word [rax], r9w
jne 0x14003387f
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x140033889
cmp cx, r9w
je 0x14003387f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14003386d
movzx edx, word [rax]
test dx, dx
jne 0x140033851
jmp 0x14003383b
mov rcx, rax
jmp 0x140033891
mov r8d, ebp
cmp dword [r14], esi
jne 0x14003389b
test rdi, rdi
jne 0x1400338bb
test r8d, r8d
je 0x1400338a2
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x1400337fb
test rdi, rdi
jne 0x1400338d0
movsxd rax, esi
jmp 0x1400338d2
test rbx, rbx
je 0x1400338d0
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x1400338d2
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140033904
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
lea rcx, [rax + 0x10]
xor ebp, ebp
mov dword [rax + 0x10], ebp
call fcn.1400337b4
mov esi, dword [rsp + 0x38]
mov ecx, esi
mov edx, ebx
mov rdi, rax
call fcn.14003e5a0
mov ecx, ebp
jmp 0x14003395a
test esi, esi
je 0x14003395f
movzx edx, word [rdi]
cmp dx, 0x22
jne 0x14003394d
inc ecx
jmp 0x140033954
mov word [rax], dx
add rax, 2
add rdi, 2
dec esi
cmp word [rdi], bp
jne 0x14003393c
mov word [rax], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.14003e800
Function at 0x140034020
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140080070], 0
jne 0x140034045
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140080070], 1
mov dword [0x140080074], eax
mov rcx, qword [0x14007fa10]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140080074]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140034200
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140080070], 0
mov ebx, ecx
jne 0x140034224
call fcn.140034020
mov ecx, dword [0x140080074]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003424c
call fcn.140034020
mov ecx, dword [0x140080074]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140034260
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x1400342a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140034200
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140080070], 0
jne 0x140034045
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140080070], 1
mov dword [0x140080074], eax
mov rcx, qword [0x14007fa10]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140080074]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140034200
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140080070], 0
mov ebx, ecx
jne 0x140034224
call fcn.140034020
mov ecx, dword [0x140080074]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003424c
call fcn.140034020
mov ecx, dword [0x140080074]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140034260
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x1400342a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140034300
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140080070], 0
mov rbx, rcx
jne 0x140034317
call fcn.140034020
mov ecx, dword [0x140080074]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x14003433f
call fcn.140034020
mov ecx, dword [0x140080074]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, 0x10
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x1400343b8
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x14003513c
Capabilities:
Create thread

Disassembly:
lea r8, [0x14006e9a0]
xor edx, edx
jmp 0x14003513c
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r8
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x140035201
mov rcx, qword [0x14007fa10]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x30], r14d
mov dword [rdi + 0x68], esi
mov qword [rdi + 0x40], rax
test sil, r14b
je 0x1400351ee
lea rax, [rsp + 0x50]
lea r8, [0x1400353ac]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400351e1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400351e5
mov esi, dword [rsp + 0x50]
test esi, esi
je 0x1400351f9
mov rbx, rdi
jmp 0x140035201
mov rcx, rdi
call fcn.140035220
mov rbx, rax
mov rcx, rdi
call fcn.140035474
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140036120
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
mov edi, 1
cmp dword [0x1400800c8], ebx
jne 0x14003615b
lea r8, [fcn.140036034]
lea edx, [rdi + 0xf]
lea ecx, [rdi + 0x37]
mov dword [0x1400800c8], edi
call fcn.14003d090
mov qword [0x1400800a0], rax
cmp word [0x140080098], bx
jne 0x14003623c
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
mov word [0x140080098], di
test eax, eax
je 0x14003618a
mov word [0x140080098], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400800d0], rax
test rax, rax
je 0x14003623c
lea rdx, [0x14006ea10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400800d0]
lea rdx, [0x14006ea20]
mov qword [0x1400800a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400800d0]
lea rdx, str.getnameinfo
mov qword [0x1400800b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400800d0]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400800b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400800a8], rbx
mov qword [0x1400800c0], rax
je 0x14003623c
cmp qword [0x1400800b0], rbx
je 0x14003623c
cmp qword [0x1400800b8], rbx
je 0x14003623c
mov ecx, dword [0x14008009c]
test rax, rax
cmovne ecx, edi
mov dword [0x14008009c], ecx
movsx rax, word [0x140080098]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x1400363f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x760]
sub rsp, 0x860
xor r13d, r13d
mov rsi, rcx
lea edi, [r13 + 1]
mov r14d, r13d
cmp word [rcx + 0x24], di
jne 0x140036470
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WSOCK32.DLL_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400365ec
lea rcx, [rsi + 0x30]
lea edx, [rdi + 0x27]
call fcn.14003da90
mov r14d, edi
mov dword [rax], edi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rcx, rax
mov rax, qword [rsi + 0x28]
mov qword [0x140080d90], rax
mov qword [0x140080d80], rcx
jmp 0x1400365ec
xor r9d, r9d
cmp word [rcx + 0x26], r13w
mov rcx, qword [rcx]
mov r8d, 0x800
lea rdx, [rsp + 0x60]
je 0x1400364a5
lea rax, [rbp + 0x7a0]
mov dword [rbp + 0x7a0], 0x1c
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
jmp 0x1400364c0
lea rax, [rbp + 0x7a8]
mov dword [rbp + 0x7a8], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_recvfrom]
mov r15d, eax
test eax, eax
jle 0x1400365ec
mov rbx, qword [rsi + 0x30]
mov r14d, 2
test rbx, rbx
je 0x140036521
lea rcx, [rbx + 0x14]
cmp word [rsi + 0x26], r13w
je 0x1400364fe
movsxd r8, dword [rbp + 0x7a0]
lea rdx, [rsp + 0x40]
jmp 0x14003650a
movsxd r8, dword [rbp + 0x7a8]
lea rdx, [rsp + 0x30]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140036518
mov rbx, qword [rbx]
jmp 0x1400364e0
lea rdi, [rbx + 0x10]
test rbx, rbx
jne 0x140036567
lea rcx, [rsi + 0x30]
mov edx, 0x60
call fcn.14003da90
mov rdi, rax
mov dword [rax], r14d
mov qword [rax + 0x28], rsi
cmp word [rsi + 0x26], r13w
je 0x14003655d
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 4], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rax + 0x14], xmm1
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x1c], eax
jmp 0x140036567
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rax + 4], xmm0
mov r8, qword [rdi + 0x38]
test r8, r8
jne 0x1400365a3
mov rcx, qword [0x14007fa10]
movsxd rbx, r15d
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x60]
mov r8, rbx
mov rcx, rax
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x40], r15d
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
jmp 0x1400365da
mov ecx, dword [rdi + 0x40]
mov edx, 8
add ecx, r15d
movsxd r9, ecx
mov rcx, qword [0x14007fa10]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movsxd rcx, dword [rdi + 0x40]
lea rdx, [rsp + 0x60]
add rcx, rax
movsxd r8, r15d
mov qword [rdi + 0x38], rax
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x40], r15d
mov qword [0x140080d80], rdi
mov rcx, qword [rsi + 0x28]
mov qword [0x140080d90], rcx
mov eax, r14d
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140036860
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
xor ebx, ebx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x14003690a
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x980]
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r9d, r9d
xor r8d, r8d
inc ecx
mov dword [rsp + 0x40], 1
mov qword [rbp + 0x980], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_select]
test eax, eax
js 0x140036903
je 0x140036989
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x140036989
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x140036903
cmp dword [rbp + 0x970], ebx
je 0x140036903
lea ebx, [rax + 2]
jmp 0x140036989
mov ebx, 4
jmp 0x140036989
mov rcx, qword [rcx + 0x30]
lea rax, [rbp + 0x978]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x800
mov dword [rbp + 0x978], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [rbp + 0x970], eax
test eax, eax
jle 0x140036989
mov rcx, qword [0x14007fa10]
movsxd r8, eax
xor edx, edx
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x970]
mov dword [rdi + 0x40], ecx
mov r8, rcx
lea rdx, [rbp + 0x150]
mov rcx, rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
movsxd rax, ebx
add rsp, 0xa50
pop rdi
pop rbx
pop rbp
ret
Function at 0x140036f68
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15d, edx
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x1400800a0]
xor r13d, r13d
mov r12, r9
mov ebp, r8d
mov qword [rsp + 0x28], r13
call fcn.14003cfc8
mov rbx, rax
test rax, rax
je 0x14003713a
cmp r15d, 0xffff
ja 0x140037123
lea ecx, [r13 + 2]
lea eax, [rcx + 0x15]
bt ebp, 0x1c
jae 0x140036fd5
mov esi, eax
btr ebp, 0x1c
jmp 0x140036fd7
mov esi, ecx
mov eax, 1
test ebp, ebp
mov ecx, esi
cmove ebp, eax
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.WSOCK32.DLL_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140037123
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x20], 1
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp eax, 0xffffffff
jle 0x140037115
mov eax, 0x17
lea r13, [rbx + 8]
movzx ecx, r15w
cmp esi, eax
je 0x140037035
mov eax, 2
mov word [r13], ax
call qword [sym.imp.WSOCK32.DLL_htons]
xor r15d, r15d
mov word [rbx + 0xa], ax
test r12, r12
je 0x140037093
cmp word [r12], r15w
je 0x140037093
mov rcx, r12
call fcn.140069a50
mov r12d, 0x17
mov r15, rax
cmp esi, r12d
jne 0x14003707a
lea r8, [rbx + 0x10]
mov rdx, rax
mov ecx, r12d
call fcn.14003633c
jmp 0x140037086
mov rcx, rax
call qword [sym.imp.WSOCK32.DLL_inet_addr]
mov dword [rbx + 0xc], eax
mov rcx, r15
call fcn.140069a40
xor r15d, r15d
jmp 0x1400370b0
mov r12d, 0x17
cmp esi, r12d
jne 0x1400370ac
movups xmm0, xmmword [0x14006e9e8]
movdqu xmmword [rbx + 0x10], xmm0
jmp 0x1400370b5
mov dword [rbx + 0xc], r15d
cmp esi, r12d
jne 0x1400370bd
mov r8d, 0x1c
jmp 0x1400370c3
mov r8d, 0x10
mov rdx, r13
mov rcx, r14
call qword [sym.imp.WSOCK32.DLL_bind]
test eax, eax
jne 0x140037110
cmp ebp, 1
jne 0x1400370e8
lea edx, [rax + 0x64]
mov rcx, r14
call qword [sym.imp.WSOCK32.DLL_listen]
test eax, eax
jne 0x140037110
mov eax, r15d
cmp esi, r12d
mov qword [rbx], r14
sete al
cmp rdi, 0xffffffffffffffff
mov word [rbx + 0x24], bp
mov word [rbx + 0x26], ax
mov rax, rdi
mov r13, rbx
cmove rax, rbx
mov qword [rbx + 0x28], rax
jmp 0x14003711e
mov r13, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.WSOCK32.DLL_closesocket]
test r13, r13
jne 0x14003713a
mov rcx, qword [0x1400800a0]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14003cefc
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140037184
Capabilities:
Get hostname
Resolve dns

Disassembly:
xor ecx, ecx
jmp 0x140037184
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
xor ebx, ebx
mov edi, ecx
mov dword [0x140080da0], ecx
lea rcx, [rsp + 0x20]
mov edx, 0xff
mov dword [0x140080db0], ebx
mov qword [0x140080dd8], rbx
mov qword [0x140080de0], rbx
call qword [sym.imp.WSOCK32.DLL_gethostname]
test eax, eax
jne 0x140037242
cmp edi, 0x10000000
jne 0x140037218
cmp dword [0x14008009c], ebx
je 0x140037242
mov rcx, qword [0x1400800d8]
test rcx, rcx
je 0x1400371ec
call qword [0x1400800b0]
mov qword [0x1400800d8], rbx
lea r9, [0x1400800d8]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [0x1400800a8]
test rax, rax
jne 0x140037242
mov rax, qword [0x1400800d8]
mov qword [0x140080de0], rax
jmp 0x14003723d
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.DLL_gethostbyname]
test rax, rax
je 0x140037242
lea rcx, [0x140080dc0]
mov r8d, 0x20
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov ebx, 1
movsxd rax, ebx
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret

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

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10d, r8d
mov r11, rdx
jne 0x140037322
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_send]
jmp 0x140037360
cmp byte [rcx + 0x20], 0
lea r8, [rcx + 4]
mov edx, 0x1c
jne 0x140037336
mov edx, 0x10
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140037344
mov rcx, qword [rax]
jmp 0x140037348
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WSOCK32.DLL_sendto]
cdqe
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x1400373c9
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
jmp 0x140037411
cmp qword [rcx + 0x38], rsi
je 0x140037411
cmp r8d, dword [rcx + 0x40]
mov rdx, qword [rcx + 0x48]
mov esi, r8d
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x140037411
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x14007fa10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret