joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d1f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x20c]
mov rbx, rcx
test eax, eax
jne 0x14002d319
xor esi, esi
nop word [rax + rax]
mov r8d, dword [rbx + 0x44]
mov rdx, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x14002d2cf
mov rcx, qword [rbx + 0x80]
mov edx, eax
mov dword [rbx + 0x210], esi
call fcn.140022920
test eax, eax
jne 0x14002d32e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x80]
mov r8d, edi
mov rcx, rbx
call qword [rax + 0x128]
cmp eax, 2
jne 0x14002d30b
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.14002a740
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
mov dword [rbx + 0x24], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xffffffff
jne 0x14002d2f1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14002d319
cmp eax, 0x2744
je 0x14002d30b
cmp eax, 0x2746
jne 0x14002d2a5
jmp 0x14002d30b
test eax, eax
jne 0x14002d30b
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__recv_0_bytes__detect_package__n
mov dword [rbx + 0x210], esi
call fcn.14002a740
mov eax, dword [rbx + 0x20c]
test eax, eax
je 0x14002d220
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x24], esi
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x18], 1
mov qword [rbx + 0x1c], 5
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14002db00
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rsi, rcx
call fcn.14002d360
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002dca5
nop dword [rax + rax]
mov r8d, dword [rdi + 0x30]
sub r8d, dword [rdi + 0x28]
xor r9d, r9d
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x14002dbc7
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rsi + 0x208], ebp
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rsi]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call qword [r9 + 0x118]
cmp eax, 2
jne 0x14002dbc0
mov rdx, qword [rsi + 0x38]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.14002a740
mov rbx, qword [rsp + 0x28]
jmp 0x14002dbcc
cmp eax, 0xffffffff
je 0x14002dc0e
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.1400344f0
test eax, eax
jne 0x14002dbe4
mov rcx, rdi
call fcn.140028a10
mov rcx, rsi
call fcn.14002d360
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14002db50
jmp 0x14002dca5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14002dc71
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1d8]
test rax, rax
je 0x14002dc45
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1d8]
mov qword [rdi + 8], rax
jmp 0x14002dc54
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rax
mov qword [rsi + 0x1e0], rdi
mov qword [rsi + 0x1d8], rdi
inc dword [rsi + 0x1d0]
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14002dcc2
mov dword [rsi + 0x18], 1
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], 1
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.1400344f0
test eax, eax
jne 0x14002dca1
mov rcx, rdi
call fcn.140028a10
xor eax, eax
jmp 0x14002dcc7
test rdi, rdi
je 0x14002dcc2
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.1400344f0
test eax, eax
jne 0x14002dcc2
mov rcx, rdi
call fcn.140028a10
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x14002e6e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x60]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x14002e290]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140046268
test rax, rax
mov qword [rbx + 0x58], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14002ecb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x24c]
mov rbx, rcx
test eax, eax
jne 0x14002edac
lea rsi, [rcx + 0xa4]
mov ebp, reloc.WS2_32.dll_recv
cmp word [rsi], 2
mov r8d, dword [rbx + 0x44]
mov rdx, qword [rbx + 0xc0]
mov rcx, qword [rbx + 0x28]
mov eax, 0x1c
cmove eax, ebp
xor r9d, r9d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test eax, eax
js 0x14002ed7e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rbx]
mov rdx, qword [rbx + 0xc0]
mov r8d, edi
mov rcx, rbx
call qword [r9 + 0x140]
cmp eax, 2
jne 0x14002ed9e
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.14002a740
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
mov dword [rbx + 0x24], 1
xor eax, eax
jmp 0x14002edb1
cmp eax, 0xffffffff
jne 0x14002ed9e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14002edac
cmp eax, 0x2744
je 0x14002ed9e
cmp eax, 0x2746
jne 0x14002ed62
mov eax, dword [rbx + 0x24c]
test eax, eax
je 0x14002ece1
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002f4c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, rcx
call fcn.14002edd0
mov rdi, rax
lea rbx, [rsi + 0xe8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14002f696
lea r13, [rsi + 0x88]
mov r14d, reloc.WS2_32.dll_recv
nop dword [rax + rax]
mov eax, 0x1c
cmp word [r13], 2
cmove eax, r14d
mov r8d, dword [rdi + 0x30]
sub r8d, dword [rdi + 0x28]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.WS2_32.dll_sendto]
mov ebp, eax
test eax, eax
js 0x14002f5b8
lea rcx, [rsi + 0x1e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
cmp ebp, ecx
cmovg ecx, ebp
sub dword [rsi + 0x248], ecx
lea rcx, [rsi + 0x1e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call qword [rax + 0x130]
cmp eax, 2
jne 0x14002f5b1
mov rdx, qword [rsi + 0x38]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.14002a740
mov rbx, qword [rsp + 0x38]
jmp 0x14002f5bd
cmp eax, 0xffffffff
je 0x14002f5ff
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.1400344f0
test eax, eax
jne 0x14002f5d5
mov rcx, rdi
call fcn.140028a10
mov rcx, rsi
call fcn.14002edd0
mov rdi, rax
lea rbx, [rsi + 0xe8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14002f520
jmp 0x14002f696
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14002f662
lea rcx, [rsi + 0x1e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x218]
test rax, rax
je 0x14002f636
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x218]
mov qword [rdi + 8], rax
jmp 0x14002f645
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rax
mov qword [rsi + 0x220], rdi
mov qword [rsi + 0x218], rdi
inc dword [rsi + 0x210]
lea rcx, [rsi + 0x1e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14002f6b3
mov dword [rsi + 0x18], 1
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], 1
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.1400344f0
test eax, eax
jne 0x14002f692
mov rcx, rdi
call fcn.140028a10
xor eax, eax
jmp 0x14002f6b8
test rdi, rdi
je 0x14002f6b3
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.1400344f0
test eax, eax
jne 0x14002f6b3
mov rcx, rdi
call fcn.140028a10
mov eax, 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x14002fea0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x68]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x14002fc40]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140046268
test rax, rax
mov qword [rbx + 0x60], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x1400316e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x14009afe8]
test al, 1
jne 0x140031749
or eax, 1
lea rcx, [rsp + 0x20]
mov dword [0x14009afe8], eax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x40]
lea r11d, [r11 + r11 + 2]
cmp r11d, 0x200
jae 0x140031735
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x40]
lea eax, [r11 + r11 + 2]
mov dword [0x14009afe4], eax
add rsp, 0x58
ret
mov dword [0x14009afe4], 0x200
mov eax, 0x200
add rsp, 0x58
ret
mov eax, dword [0x14009afe4]
add rsp, 0x58
ret
Function at 0x140032310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
xor eax, eax
mov rbx, rcx
mov word [rsp + 0x38], ax
mov qword [r11 - 0x2e], rax
mov qword [r11 - 0x26], rax
mov qword [r11 - 0x1e], rax
mov word [rsp + 0x52], ax
lea rax, [r11 - 0x30]
mov qword [r11 - 0x48], rax
call fcn.140031820
test eax, eax
je 0x140032499
cmp word [rsp + 0x38], 2
mov rcx, qword [rbx + 0x198]
mov edi, 0x1c
mov r8d, edi
mov esi, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
cmove r8d, esi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140032487
cmp word [rsp + 0x38], 2
mov rcx, qword [rbx + 0x198]
lea rdx, [rbx + 0x58]
cmove edi, esi
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1400323b5
mov ecx, 0x80004005
call fcn.140017090
int3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 0x190]
mov r8, qword [rbx + 0x198]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
cmp eax, 2
je 0x14003246b
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x140032456
mov rcx, qword [rbx + 0x198]
test eax, eax
jne 0x140032421
mov eax, dword [rbx + 0x34]
mov r9d, dword [rbx + 0x30]
lea r8, [rbx + 0x3c]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x20], eax
call fcn.140022b60
test eax, eax
jne 0x140032456
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], VariantTimeToDosDateTime
jmp 0x1400324a9
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x20
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call fcn.140022440
cmp eax, 0xffffffff
jne 0x140032456
mov ecx, 0x80004005
call fcn.140017090
int3
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x1ac], 5
test eax, eax
cmove eax, ecx
jmp 0x1400324a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], 4
jmp 0x1400324a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], 3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x60
pop rdi
ret
Function at 0x140033980
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rbp, rcx
mov edi, r12d
cmp dword [rcx + 0x14], r12d
jbe 0x140033ab3
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
lea r8, [0x1400337b0]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.140046268
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140033a96
mov rax, qword [rbp + 0x1b8]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x140033a42
mov rcx, qword [rbp + 0x1b0]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x140033a42
lea rsi, [rsp + 0x50]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rbp + 0x1c0]
jne 0x140033a26
lea rcx, [rbp + 0x1b0]
mov edx, 1
call fcn.140024d10
mov rdx, qword [rbp + 0x1b8]
test rdx, rdx
je 0x140033a6b
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x140033a6b
cmp rax, qword [rbp + 0x1c0]
jne 0x140033a5c
lea rcx, [rbp + 0x1b0]
mov edx, 1
call fcn.140024d10
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x140033a6b
mov qword [rcx], rsi
add qword [rbp + 0x1b8], 8
inc edi
cmp edi, dword [rbp + 0x14]
jb 0x1400339b0
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x1ac], 8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
jmp 0x140033a83
mov eax, 1
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

Function at 0x140034910
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov eax, r9d
mov rdi, rdx
mov rsi, rcx
cmp r8d, 1
jne 0x14003496d
lea rbx, [rdx + 0x70]
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rsi]
xor r9d, r9d
lea r8d, [r9 + 5]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x220]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140034980
cmp r8d, 2
jne 0x140034980
mov r9d, dword [rsp + 0x60]
mov r8d, eax
call fcn.140034840
mov rcx, qword [rdi + 0xc8]
mov qword [rdi + 0xc8], 0xffffffffffffffff
mov r8d, 1
mov edx, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140022980
Function at 0x140038750
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rbp, rcx
mov edi, r12d
cmp dword [rcx + 0x18], r12d
jbe 0x140038883
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
lea r8, [0x1400385d0]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.140046268
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140038866
mov rax, qword [rbp + 0xa0]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x140038812
mov rcx, qword [rbp + 0x98]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x140038812
lea rsi, [rsp + 0x50]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rbp + 0xa8]
jne 0x1400387f6
lea rcx, [rbp + 0x98]
mov edx, 1
call fcn.140024d10
mov rdx, qword [rbp + 0xa0]
test rdx, rdx
je 0x14003883b
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x14003883b
cmp rax, qword [rbp + 0xa8]
jne 0x14003882c
lea rcx, [rbp + 0x98]
mov edx, 1
call fcn.140024d10
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14003883b
mov qword [rcx], rsi
add qword [rbp + 0xa0], 8
inc edi
cmp edi, dword [rbp + 0x18]
jb 0x140038780
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x94], 8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
jmp 0x140038853
mov eax, 1
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

Function at 0x140039160
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov eax, r9d
mov rdi, rdx
mov rsi, rcx
cmp r8d, 1
jne 0x1400391bd
lea rbx, [rdx + 0x70]
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rsi]
xor r9d, r9d
lea r8d, [r9 + 5]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x208]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400391d0
cmp r8d, 2
jne 0x1400391d0
mov r9d, dword [rsp + 0x60]
mov r8d, eax
call fcn.140039080
mov rcx, qword [rdi + 0xc8]
mov qword [rdi + 0xc8], 0xffffffffffffffff
mov r8d, 1
mov edx, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140022980
Function at 0x14003b620
Capabilities:
Connect socket

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r12, rcx
add rcx, 0xe0
call fcn.1400350a0
mov r13, rax
mov r10d, dword [r12 + 0x1c]
mov dword [rax + 0x30], r10d
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.14003a360
mov rbp, rax
lea rbx, [rax + 0x70]
mov qword [rsp + 0x60], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x80]
mov r9, rdi
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call fcn.14003b0e0
mov esi, 1
mov rcx, qword [rbp + 0xc8]
cmp dword [r12 + 0x68], 0
je 0x14003b72a
mov edx, esi
call fcn.140022530
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
jne 0x14003b6e6
mov ecx, 0x80004005
call fcn.140017090
int3
xor r9d, r9d
mov r8, rbp
mov rdx, qword [r12 + 0x70]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14003b71f
mov r9, r13
mov r8, rdi
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [r12 + 0x50]
call fcn.140024630
jmp 0x14003b7cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003b7cb
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
cmp word [rdi], 2
cmove r8d, eax
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14003b7c5
mov edx, esi
mov rcx, qword [rbp + 0xc8]
call fcn.140022530
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
jne 0x14003b76f
mov ecx, 0x80004005
call fcn.140017090
int3
xor r9d, r9d
mov r8, rbp
mov rdx, qword [r12 + 0x70]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14003b71f
mov dword [rbp + 0x60], esi
mov rdx, rbp
mov rcx, r12
call fcn.140038f60
cmp eax, 2
je 0x14003b7b1
mov r8, r13
mov rdx, rbp
mov rcx, r12
call fcn.14003b4f0
xor esi, esi
jmp 0x14003b7cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, 0x4c7
test edi, edi
cmove edi, eax
jmp 0x14003b7cd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
test edi, edi
je 0x14003b815
test esi, esi
je 0x14003b815
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.14003b000
lea rcx, [r12 + 0x110]
mov rdx, r13
call fcn.1400344f0
test eax, eax
jne 0x14003b815
mov rcx, qword [r13 + 0x20]
mov r8, r13
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x14003c470
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rbp, rcx
mov edi, r12d
cmp dword [rcx + 0x18], r12d
jbe 0x14003c5a0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
lea r8, [0x14003c1f0]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.140046268
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003c586
mov rax, qword [rbp + 0xa8]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x14003c532
mov rcx, qword [rbp + 0xa0]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x14003c532
lea rsi, [rsp + 0x50]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rbp + 0xb0]
jne 0x14003c516
lea rcx, [rbp + 0xa0]
mov edx, 1
call fcn.140024d10
mov rdx, qword [rbp + 0xa8]
test rdx, rdx
je 0x14003c55b
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x14003c55b
cmp rax, qword [rbp + 0xb0]
jne 0x14003c54c
lea rcx, [rbp + 0xa0]
mov edx, 1
call fcn.140024d10
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14003c55b
mov qword [rcx], rsi
add qword [rbp + 0xa8], 8
inc edi
cmp edi, dword [rbp + 0x18]
jb 0x14003c4a0
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7c], 8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
jmp 0x14003c573
mov eax, 1
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
mov ebx, 1
call qword [rax + 0x58]
test eax, eax
jne 0x14003d220
xor ebx, ebx
jmp 0x14003d28f
cmp word [rbp + 0x10], 2
lea rcx, [rbp + 0x10]
mov eax, 0x1c
mov edx, reloc.WS2_32.dll_recv
cmove eax, edx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x158]
xor edx, edx
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x14003d280
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14003d280
mov rax, qword [rdi]
mov rcx, rdi
xor ebx, ebx
call qword [rax + 0x58]
test eax, eax
je 0x14003d28f
mov ecx, 0x80004005
call fcn.140017090
int3
lea rcx, str._S_CNNID:__Iu__send_0_bytes__detect_package__n
mov rdx, rsi
call fcn.14002a740
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14003f590
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, qword [r8]
xor r9d, r9d
mov r15d, 0x1c
cmp word [r14], 2
mov r12, rdx
mov r10d, r15d
mov edx, 8
mov rdi, rcx
mov r8d, 0x811c9dc5
cmove r10d, edx
test r10, r10
jle 0x14003f5f7
nop word [rax + rax]
movzx eax, byte [r9 + r14]
imul r8, r8, 0x1000193
inc r9
xor r8, rax
cmp r9, r10
jl 0x14003f5e0
mov rcx, qword [rcx + 0x40]
mov rsi, rcx
and rsi, r8
cmp qword [rdi + 0x48], rsi
ja 0x14003f614
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rsi, rax
mov r13, qword [rdi + 0x20]
mov rdi, qword [rdi + 8]
add rsi, rsi
mov rbp, qword [r13 + rsi*8]
mov rbx, rbp
mov qword [rsp + 0x60], rbx
cmp rbp, rdi
jne 0x14003f636
mov rax, rdi
jmp 0x14003f63e
mov rax, qword [r13 + rsi*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14003f6aa
mov rcx, qword [rbx + 0x10]
mov r8, r15
cmp word [rcx], 2
cmove r8, rdx
mov rdx, r14
call fcn.140048f50
test eax, eax
je 0x14003f668
mov rbx, qword [rbx]
mov edx, 8
jmp 0x14003f627
cmp word [r14], 2
mov rdx, qword [rbx + 0x10]
mov eax, 8
cmove r15, rax
mov rcx, r14
mov r8, r15
call fcn.140048f50
test eax, eax
je 0x14003f69c
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rdi
mov rax, qword [rax]
mov qword [r12], rax
jmp 0x14003f6ae
lea rax, [rsp + 0x60]
mov rax, qword [rax]
mov qword [r12], rax
jmp 0x14003f6ae
mov qword [r12], rdi
mov rax, r12
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret