joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e1e0
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.14003da80
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003e385
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 0x14003e2a7
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 0x14003e2a0
mov rdx, qword [rsi + 0x38]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.14003ae50
mov rbx, qword [rsp + 0x28]
jmp 0x14003e2ac
cmp eax, 0xffffffff
je 0x14003e2ee
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.140052830
test eax, eax
jne 0x14003e2c4
mov rcx, rdi
call fcn.140039380
mov rcx, rsi
call fcn.14003da80
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14003e230
jmp 0x14003e385
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14003e351
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1d8]
test rax, rax
je 0x14003e325
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1d8]
mov qword [rdi + 8], rax
jmp 0x14003e334
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 0x14003e3a2
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.140052830
test eax, eax
jne 0x14003e381
mov rcx, rdi
call fcn.140039380
xor eax, eax
jmp 0x14003e3a7
test rdi, rdi
je 0x14003e3a2
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.140052830
test eax, eax
jne 0x14003e3a2
mov rcx, rdi
call fcn.140039380
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 0x14003ee00
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, [0x14003e9b0]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140057678
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 0x14003f3b0
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 0x14003f4ac
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 0x14003f47e
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 0x14003f49e
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.14003ae50
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 0x14003f4b1
cmp eax, 0xffffffff
jne 0x14003f49e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14003f4ac
cmp eax, 0x2744
je 0x14003f49e
cmp eax, 0x2746
jne 0x14003f462
mov eax, dword [rbx + 0x24c]
test eax, eax
je 0x14003f3e1
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 0x14003fbc0
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.14003f4d0
mov rdi, rax
lea rbx, [rsi + 0xe8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14003fd96
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 0x14003fcb8
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 0x14003fcb1
mov rdx, qword [rsi + 0x38]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.14003ae50
mov rbx, qword [rsp + 0x38]
jmp 0x14003fcbd
cmp eax, 0xffffffff
je 0x14003fcff
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.140052830
test eax, eax
jne 0x14003fcd5
mov rcx, rdi
call fcn.140039380
mov rcx, rsi
call fcn.14003f4d0
mov rdi, rax
lea rbx, [rsi + 0xe8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14003fc20
jmp 0x14003fd96
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14003fd62
lea rcx, [rsi + 0x1e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x218]
test rax, rax
je 0x14003fd36
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x218]
mov qword [rdi + 8], rax
jmp 0x14003fd45
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 0x14003fdb3
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.140052830
test eax, eax
jne 0x14003fd92
mov rcx, rdi
call fcn.140039380
xor eax, eax
jmp 0x14003fdb8
test rdi, rdi
je 0x14003fdb3
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.140052830
test eax, eax
jne 0x14003fdb3
mov rcx, rdi
call fcn.140039380
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 0x1400405a0
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, [0x140040340]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140057678
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 0x140041d40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x1400b6178]
test al, 1
jne 0x140041da9
or eax, 1
lea rcx, [rsp + 0x20]
mov dword [0x1400b6178], eax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x40]
lea r11d, [r11 + r11 + 2]
cmp r11d, 0x200
jae 0x140041d95
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x40]
lea eax, [r11 + r11 + 2]
mov dword [0x1400b6174], eax
add rsp, 0x58
ret
mov dword [0x1400b6174], 0x200
mov eax, 0x200
add rsp, 0x58
ret
mov eax, dword [0x1400b6174]
add rsp, 0x58
ret
Function at 0x1400429a0
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.140041e80
test eax, eax
je 0x140042b29
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 0x140042b17
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 0x140042a45
mov ecx, 0x80004005
call fcn.140027b40
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 0x140042afb
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x140042ae6
mov rcx, qword [rbx + 0x198]
test eax, eax
jne 0x140042ab1
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.1400337a0
test eax, eax
jne 0x140042ae6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], send
jmp 0x140042b39
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x20
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call fcn.140033080
cmp eax, 0xffffffff
jne 0x140042ae6
mov ecx, 0x80004005
call fcn.140027b40
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 0x140042b39
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], 4
jmp 0x140042b39
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 0x140044280
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 0x1400443b3
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
lea r8, [0x1400440b0]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.140057678
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140044396
mov rax, qword [rbp + 0x1b8]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x140044342
mov rcx, qword [rbp + 0x1b0]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x140044342
lea rsi, [rsp + 0x50]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rbp + 0x1c0]
jne 0x140044326
lea rcx, [rbp + 0x1b0]
mov edx, 1
call fcn.140043850
mov rdx, qword [rbp + 0x1b8]
test rdx, rdx
je 0x14004436b
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x14004436b
cmp rax, qword [rbp + 0x1c0]
jne 0x14004435c
lea rcx, [rbp + 0x1b0]
mov edx, 1
call fcn.140043850
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x14004436b
mov qword [rcx], rsi
add qword [rbp + 0x1b8], 8
inc edi
cmp edi, dword [rbp + 0x14]
jb 0x1400442b0
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 0x140044383
mov eax, 1
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

Function at 0x140045160
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 0x1400451bd
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 0x1400451d0
cmp r8d, 2
jne 0x1400451d0
mov r9d, dword [rsp + 0x60]
mov r8d, eax
call fcn.140045090
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.1400335c0
Function at 0x140049220
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 0x140049353
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
lea r8, [0x1400490a0]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.140057678
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140049336
mov rax, qword [rbp + 0xa0]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x1400492e2
mov rcx, qword [rbp + 0x98]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x1400492e2
lea rsi, [rsp + 0x50]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rbp + 0xa8]
jne 0x1400492c6
lea rcx, [rbp + 0x98]
mov edx, 1
call fcn.140043850
mov rdx, qword [rbp + 0xa0]
test rdx, rdx
je 0x14004930b
mov rax, qword [rbp + 0x98]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x14004930b
cmp rax, qword [rbp + 0xa8]
jne 0x1400492fc
lea rcx, [rbp + 0x98]
mov edx, 1
call fcn.140043850
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14004930b
mov qword [rcx], rsi
add qword [rbp + 0xa0], 8
inc edi
cmp edi, dword [rbp + 0x18]
jb 0x140049250
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 0x140049323
mov eax, 1
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

Function at 0x140049cc0
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 0x140049d1d
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 0x140049d30
cmp r8d, 2
jne 0x140049d30
mov r9d, dword [rsp + 0x60]
mov r8d, eax
call fcn.140049be0
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.1400335c0
Function at 0x14004c190
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.1400458f0
mov r13, rax
mov r10d, dword [r12 + 0x1c]
mov dword [rax + 0x30], r10d
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.14004aed0
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.14004bc50
mov esi, 1
mov rcx, qword [rbp + 0xc8]
cmp dword [r12 + 0x68], 0
je 0x14004c29a
mov edx, esi
call fcn.140033170
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
jne 0x14004c256
mov ecx, 0x80004005
call fcn.140027b40
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 0x14004c28f
mov r9, r13
mov r8, rdi
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [r12 + 0x50]
call fcn.140035230
jmp 0x14004c33b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004c33b
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 0x14004c335
mov edx, esi
mov rcx, qword [rbp + 0xc8]
call fcn.140033170
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
jne 0x14004c2df
mov ecx, 0x80004005
call fcn.140027b40
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 0x14004c28f
mov dword [rbp + 0x60], esi
mov rdx, rbp
mov rcx, r12
call fcn.140049ac0
cmp eax, 2
je 0x14004c321
mov r8, r13
mov rdx, rbp
mov rcx, r12
call fcn.14004c060
xor esi, esi
jmp 0x14004c33b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, 0x4c7
test edi, edi
cmove edi, eax
jmp 0x14004c33d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
test edi, edi
je 0x14004c385
test esi, esi
je 0x14004c385
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.14004bb70
lea rcx, [r12 + 0x110]
mov rdx, r13
call fcn.140052830
test eax, eax
jne 0x14004c385
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 0x14004cfe0
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 0x14004d110
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
lea r8, [0x14004cd60]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call fcn.140057678
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14004d0f6
mov rax, qword [rbp + 0xa8]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x14004d0a2
mov rcx, qword [rbp + 0xa0]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x14004d0a2
lea rsi, [rsp + 0x50]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rbp + 0xb0]
jne 0x14004d086
lea rcx, [rbp + 0xa0]
mov edx, 1
call fcn.140043850
mov rdx, qword [rbp + 0xa8]
test rdx, rdx
je 0x14004d0cb
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x14004d0cb
cmp rax, qword [rbp + 0xb0]
jne 0x14004d0bc
lea rcx, [rbp + 0xa0]
mov edx, 1
call fcn.140043850
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14004d0cb
mov qword [rcx], rsi
add qword [rbp + 0xa8], 8
inc edi
cmp edi, dword [rbp + 0x18]
jb 0x14004d010
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 0x14004d0e3
mov eax, 1
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

Function at 0x14004dcb0
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 0x14004dce0
xor ebx, ebx
jmp 0x14004dd4f
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 0x14004dd40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14004dd40
mov rax, qword [rdi]
mov rcx, rdi
xor ebx, ebx
call qword [rax + 0x58]
test eax, eax
je 0x14004dd4f
mov ecx, 0x80004005
call fcn.140027b40
int3
lea rcx, str._S_CNNID:__Iu__send_0_bytes__detect_package__n
mov rdx, rsi
call fcn.14003ae50
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 0x1400503d0
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 0x140050437
nop word [rax + rax]
movzx eax, byte [r9 + r14]
imul r8, r8, 0x1000193
inc r9
xor r8, rax
cmp r9, r10
jl 0x140050420
mov rcx, qword [rcx + 0x40]
mov rsi, rcx
and rsi, r8
cmp qword [rdi + 0x48], rsi
ja 0x140050454
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 0x140050476
mov rax, rdi
jmp 0x14005047e
mov rax, qword [r13 + rsi*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x1400504ea
mov rcx, qword [rbx + 0x10]
mov r8, r15
cmp word [rcx], 2
cmove r8, rdx
mov rdx, r14
call fcn.1400574e0
test eax, eax
je 0x1400504a8
mov rbx, qword [rbx]
mov edx, 8
jmp 0x140050467
cmp word [r14], 2
mov rdx, qword [rbx + 0x10]
mov eax, 8
cmove r15, rax
mov rcx, r14
mov r8, r15
call fcn.1400574e0
test eax, eax
je 0x1400504dc
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rdi
mov rax, qword [rax]
mov qword [r12], rax
jmp 0x1400504ee
lea rax, [rsp + 0x60]
mov rax, qword [rax]
mov qword [r12], rax
jmp 0x1400504ee
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
Function at 0x140050510
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, qword [r8]
xor r9d, r9d
mov r10d, 0x1c
cmp word [r15], 2
mov r11d, 8
mov r13, rdx
cmove r10d, r11d
mov rdx, rcx
mov r8d, 0x811c9dc5
test r10, r10
jle 0x140050577
nop word [rax + rax]
movzx eax, byte [r9 + r15]
imul r8, r8, 0x1000193
inc r9
xor r8, rax
cmp r9, r10
jl 0x140050560
mov rcx, qword [rcx + 0x40]
mov rbp, rcx
and rbp, r8
cmp qword [rdx + 0x48], rbp
ja 0x140050594
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rbp, rax
mov r14, qword [rdx + 0x20]
mov rsi, qword [rdx + 8]
add rbp, rbp
mov r12, qword [r14 + rbp*8]
mov qword [rsp + 0x70], rdi
mov rbx, r12
nop dword [rax + rax]
cmp r12, rsi
jne 0x1400505ba
mov rax, rsi
jmp 0x1400505c2
mov rax, qword [r14 + rbp*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14005064f
mov rcx, qword [rbx + 0x10]
mov r8d, 0x1c
mov rdx, r15
cmp word [rcx], 2
cmove r8, r11
call fcn.1400574e0
test eax, eax
je 0x1400505f4
mov rbx, qword [rbx]
mov r11d, 8
jmp 0x1400505b0
mov rdi, rbx
mov r13d, 8
nop dword [rax]
cmp r12, rsi
jne 0x14005060a
mov rax, rsi
jmp 0x140050612
mov rax, qword [r14 + rbp*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14005063b
cmp word [r15], 2
mov rdx, qword [rbx + 0x10]
mov r8d, 0x1c
cmove r8, r13
mov rcx, r15
call fcn.1400574e0
test eax, eax
jne 0x14005063b
mov rbx, qword [rbx]
jmp 0x140050600
mov r13, qword [rsp + 0x68]
cmp rdi, rbx
je 0x14005064f
mov qword [r13], rdi
mov qword [r13 + 8], rbx
jmp 0x140050660
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [r13], rax
mov qword [r13 + 8], rax
mov rax, r13
mov rdi, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret