joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400324c0
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 0x140032586
lea rcx, [0x1400982c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140097368]
jmp 0x14003254a
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140032547
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140097368]
mov rdx, rsi
call fcn.14003d898
jmp 0x14003254a
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140032517
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140097368]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.14003d8e0
lea rcx, [0x1400982c0]
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 0x1400327e0
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 0x140032944
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, [0x140081e6c]
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 0x140032910
cmp word [r14 + 2], di
je 0x140032910
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140032850
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14003287d
cmp word [rbx], bp
je 0x14003287d
add rbx, 2
jmp 0x140032860
inc edi
cmp edi, r12d
je 0x140032892
cmp word [rbx], bp
je 0x14003289b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140032860
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.14003e770
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400328ca
mov ecx, r13d
call fcn.14003e9d0
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.14003e7e0
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400328ee
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 0x14003291d
test ax, ax
jne 0x140032930
inc edi
cmp edi, edx
je 0x140032936
test ax, ax
je 0x14003289e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140032910
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14003289e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.14003ea00
Function at 0x140033210
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.14003e7e0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14007a2e8
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140033240
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003ea40

Function at 0x1400332c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x14003330d
mov ebx, 0x40
mov edx, r8d
mov ecx, ebx
call fcn.14003e7e0
mov rdx, rdi
mov rcx, rax
call fcn.14007a318
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400332f0
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003ea40
cmp edx, 1
je 0x14003332b
cmp edx, 0x18
je 0x14003332b
cmp edx, 3
je 0x140033326
cmp edx, 0x19
je 0x140033326
cmp edx, 0xb
jne 0x14003332e
movzx edi, cx
jmp 0x14003332e
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.14003e7e0
lea rdx, [0x140081e70]
mov r8d, edi
mov rcx, rax
call fcn.14007b190
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003ea40

Function at 0x1400335d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x28
mov ebp, r9d
mov edi, edx
mov rsi, rcx
test r8, r8
je 0x1400336ba
movzx r15d, word [r8]
test r15w, r15w
je 0x1400336ba
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r14
cmovs edi, r13d
test rcx, rcx
je 0x14003363d
cmp word [rcx], r13w
je 0x14003363d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x140033625
cmp ebx, edi
cmovg ebx, edi
sub edi, ebx
jns 0x140033640
mov edi, r13d
jmp 0x140033640
mov ebx, r13d
call fcn.14003e770
lea ecx, [rbx + rdi]
mov edx, ebp
mov r12d, eax
call fcn.14003e7e0
mov r14, rax
test r12d, r12d
je 0x140033665
mov ecx, r12d
call fcn.14003e920
mov rsi, rax
mov r12, qword [rsp + 0x58]
test ebx, ebx
je 0x140033683
movsxd rcx, edi
movsxd r8, ebx
mov rdx, rsi
lea rcx, [r14 + rcx*2]
add r8, r8
call sub.msvcrt.dll_memmove
test edi, edi
je 0x140033699
mov edx, edi
mov rdi, r14
movzx eax, r15w
mov ecx, edx
lea r14, [r14 + rdx*2]
rep stosw word [rdi], ax
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
mov word [r14 + rax*2], r13w
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
ret
mov ecx, r9d
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
jmp fcn.14003ea00
Function at 0x140033814
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 [0x140098380]
call fcn.14003cbb4
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 0x140033911
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14003386b
add rax, 2
cmp word [rax], 0x20
je 0x140033861
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x1400338a9
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x1400338e9
cmp cx, r9w
je 0x14003389b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140033889
cmp word [rax], bp
je 0x1400338e9
mov rcx, rax
add rax, 2
jmp 0x1400338f1
test dx, dx
je 0x1400338ee
mov rbx, rax
cmp dx, 0x20
je 0x14003389b
add rax, 2
cmp word [rax], r9w
jne 0x1400338df
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x1400338e9
cmp cx, r9w
je 0x1400338df
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x1400338cd
movzx edx, word [rax]
test dx, dx
jne 0x1400338b1
jmp 0x14003389b
mov rcx, rax
jmp 0x1400338f1
mov r8d, ebp
cmp dword [r14], esi
jne 0x1400338fb
test rdi, rdi
jne 0x14003391b
test r8d, r8d
je 0x140033902
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14003385b
test rdi, rdi
jne 0x140033930
movsxd rax, esi
jmp 0x140033932
test rbx, rbx
je 0x140033930
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140033932
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 0x140033964
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.140033814
mov esi, dword [rsp + 0x38]
mov ecx, esi
mov edx, ebx
mov rdi, rax
call fcn.14003e7e0
mov ecx, ebp
jmp 0x1400339ba
test esi, esi
je 0x1400339bf
movzx edx, word [rdi]
cmp dx, 0x22
jne 0x1400339ad
inc ecx
jmp 0x1400339b4
mov word [rax], dx
add rax, 2
add rdi, 2
dec esi
cmp word [rdi], bp
jne 0x14003399c
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.14003ea40
Function at 0x140034120
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140097388], 0
jne 0x140034145
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140097388], 1
mov dword [0x14009738c], eax
mov rcx, qword [0x140096d1c]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14009738c]
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 0x140034300
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140097388], 0
mov ebx, ecx
jne 0x140034324
call fcn.140034120
mov ecx, dword [0x14009738c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003434c
call fcn.140034120
mov ecx, dword [0x14009738c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, reloc.WS2_32.dll_recvfrom
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 0x140034360
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 0x1400343a0
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 [0x140097388], 0
jne 0x140034145
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140097388], 1
mov dword [0x14009738c], eax
mov rcx, qword [0x140096d1c]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14009738c]
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 0x140034300
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140097388], 0
mov ebx, ecx
jne 0x140034324
call fcn.140034120
mov ecx, dword [0x14009738c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003434c
call fcn.140034120
mov ecx, dword [0x14009738c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, reloc.WS2_32.dll_recvfrom
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 0x140034360
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 0x1400343a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140034400
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140097388], 0
mov rbx, rcx
jne 0x140034417
call fcn.140034120
mov ecx, dword [0x14009738c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x14003443f
call fcn.140034120
mov ecx, dword [0x14009738c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, reloc.WS2_32.dll_recv
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 0x1400344b8
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 0x14003526c
Capabilities:
Create thread

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x14003526c
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x140098400]
mov r12, r8
mov r14d, edx
xor ebx, ebx
call fcn.14003cbb4
mov r15, rax
test rbp, rbp
je 0x140035350
mov rcx, qword [0x140096d1c]
lea edx, [rbx + 8]
mov r8d, 0x98
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, r12
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov qword [rdi + 0x60], rax
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x90], esi
mov dword [rdi + 0x48], eax
test sil, r14b
je 0x14003533d
lea rax, [rsp + 0x60]
lea r8, [0x140035540]
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 0x140035330
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140035334
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140035348
mov rbx, rdi
jmp 0x140035350
mov rcx, rdi
call fcn.14003536c
mov rbx, rax
mov rcx, rdi
call fcn.140035608
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140035ed0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [fcn.140035ddc]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.14003cee0
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1400973b8], rax
call fcn.14003cc4c
xor ebx, ebx
cmp word [0x1400973b0], bx
mov qword [0x140098460], rax
jne 0x140035ff3
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1400973b0], di
test eax, eax
je 0x140035f41
mov word [0x1400973b0], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400973e0], rax
test rax, rax
je 0x140035ff3
lea rdx, [0x140081f10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400973e0]
lea rdx, [0x140081f20]
mov qword [0x1400973c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400973e0]
lea rdx, str.getnameinfo
mov qword [0x1400973c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400973e0]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400973d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400973c0], rbx
mov qword [0x1400973d8], rax
je 0x140035ff3
cmp qword [0x1400973c8], rbx
je 0x140035ff3
cmp qword [0x1400973d0], rbx
je 0x140035ff3
mov ecx, dword [0x1400973b4]
test rax, rax
cmovne ecx, edi
mov dword [0x1400973b4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14003619c
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
mov rsi, rcx
mov rcx, qword [0x140098460]
xor edi, edi
mov r15d, edi
call fcn.14003cbb4
mov rcx, qword [rsi]
lea r12d, [rdi + 1]
mov r14, rax
cmp word [rsi + 0x24], r12w
jne 0x140036225
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140036397
lea rcx, [rsi + 0x30]
lea edx, [rdi + 0x28]
call fcn.14003d8e0
mov r15d, r12d
mov dword [rax], r12d
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rcx, rax
mov rax, qword [rsi + 0x28]
mov qword [r14 + 8], rax
mov qword [r14], rcx
jmp 0x140036397
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rsp + 0x60]
cmp word [rsi + 0x26], di
je 0x140036256
lea rax, [rbp + 0x7a0]
mov dword [rbp + 0x7a0], 0x1c
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
jmp 0x140036271
lea rax, [rbp + 0x7a8]
mov dword [rbp + 0x7a8], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r12d, eax
test eax, eax
jle 0x140036397
mov rbx, qword [rsi + 0x30]
mov r15d, 2
test rbx, rbx
je 0x1400362d1
lea rcx, [rbx + 0x14]
cmp word [rsi + 0x26], di
je 0x1400362ae
movsxd r8, dword [rbp + 0x7a0]
lea rdx, [rsp + 0x40]
jmp 0x1400362ba
movsxd r8, dword [rbp + 0x7a8]
lea rdx, [rsp + 0x30]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400362c8
mov rbx, qword [rbx]
jmp 0x140036291
lea rdi, [rbx + 0x10]
test rbx, rbx
jne 0x140036320
lea rcx, [rsi + 0x30]
mov edx, 0x60
call fcn.14003d8e0
xor r8d, r8d
mov dword [rax], r15d
mov qword [rax + 0x28], rsi
mov rdi, rax
mov al, byte [rsi + 0x26]
mov byte [rdi + 0x20], al
cmp word [rsi + 0x26], r8w
je 0x140036316
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 4], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rdi + 0x14], xmm1
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x1c], eax
jmp 0x140036320
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi + 4], xmm0
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x140096d1c]
test r8, r8
jne 0x14003635c
movsxd rbx, r12d
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], r12d
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
jmp 0x14003638c
mov eax, dword [rdi + 0x40]
mov edx, 8
add eax, r12d
movsxd r9, eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movsxd rcx, dword [rdi + 0x40]
lea rdx, [rsp + 0x60]
add rcx, rax
movsxd r8, r12d
mov qword [rdi + 0x38], rax
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x40], r12d
mov qword [r14], rdi
mov rcx, qword [rsi + 0x28]
mov qword [r14 + 8], rcx
mov eax, r15d
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 0x140036620
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 0x1400366ca
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.WS2_32.dll_select]
test eax, eax
js 0x1400366c3
je 0x140036749
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140036749
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400366c3
cmp dword [rbp + 0x970], ebx
je 0x1400366c3
lea ebx, [rax + 2]
jmp 0x140036749
mov ebx, 4
jmp 0x140036749
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], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x970], eax
test eax, eax
jle 0x140036749
mov rcx, qword [0x140096d1c]
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 0x140036cfc
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, 0x40
mov r12d, edx
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x1400973b8]
mov r13, r9
mov esi, r8d
xor r14d, r14d
call fcn.14003ce18
mov rbx, rax
test rax, rax
je 0x140036e32
cmp r12d, 0xffff
ja 0x140036e1b
bt esi, 0x1c
jae 0x140036d5f
lea r15d, [r14 + 0x17]
btr esi, 0x1c
jmp 0x140036d65
mov r15d, 2
mov eax, 1
test esi, esi
mov ecx, r15d
cmove esi, eax
xor r8d, r8d
mov edx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140036e1b
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x140036e0d
xor ecx, ecx
lea r8, [rbx + 8]
cmp r15d, 0x17
mov rdx, rbp
mov r9, r8
sete cl
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r13
call fcn.140037328
test eax, eax
je 0x140036e0d
cmp esi, 1
jne 0x140036de5
lea edx, [rsi + 0x63]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x140036e0d
xor eax, eax
cmp r15d, 0x17
mov qword [rbx], rbp
sete al
cmp rdi, 0xffffffffffffffff
mov word [rbx + 0x24], si
mov word [rbx + 0x26], ax
mov rax, rdi
mov r14, rbx
cmove rax, rbx
mov qword [rbx + 0x28], rax
jmp 0x140036e16
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
test r14, r14
jne 0x140036e32
mov rcx, qword [0x1400973b8]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14003cd4c
lea r11, [rsp + 0x40]
mov rax, r14
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140036e7c
Capabilities:
Get hostname
Resolve dns

Disassembly:
xor ecx, ecx
jmp 0x140036e7c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
xor ebx, ebx
mov edi, ecx
mov dword [0x140098480], ecx
lea rcx, [rsp + 0x20]
mov edx, 0xff
mov dword [0x1400984a0], ebx
mov qword [0x1400984d8], rbx
mov qword [0x1400984e0], rbx
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140036f3a
cmp edi, 0x10000000
jne 0x140036f10
cmp dword [0x1400973b4], ebx
je 0x140036f3a
mov rcx, qword [0x1400973e8]
test rcx, rcx
je 0x140036ee4
call qword [0x1400973c8]
mov qword [0x1400973e8], rbx
lea r9, [0x1400973e8]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [0x1400973c0]
test rax, rax
jne 0x140036f3a
mov rax, qword [0x1400973e8]
mov qword [0x1400984e0], rax
jmp 0x140036f35
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140036f3a
lea rcx, [0x1400984c0]
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