joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400566d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004a3ac
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140056771
cmp ebx, dword [rsp + 0x30]
je 0x14005676a
test esi, esi
je 0x14005676a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140056745
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140056752
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005672f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140056756
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140056773
mov eax, 1
jmp 0x140056773
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14005ae38
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14004d868
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004d868
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005af88
cmp rax, 0xffffffffffffffff
je 0x14005af88
xor edi, edi
test rbp, rbp
jle 0x14005af33
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004bd54
mov rbx, rax
test rax, rax
jne 0x14005aec0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005af29
mov edx, 0x8000
mov ecx, r14d
call fcn.1400474a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14004b460
cmp eax, 0xffffffff
je 0x14005af09
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005aed0
mov edx, r15d
mov ecx, r14d
call fcn.1400474a8
jmp 0x14005af29
cmp byte [rsi + 0x38], dil
je 0x14005af20
cmp dword [rsi + 0x34], 5
jne 0x14005af20
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005af29
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004b768
jmp 0x14005af9c
jns 0x14005af9c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004d868
cmp rax, 0xffffffffffffffff
jne 0x14005af54
cmp byte [rsi + 0x30], dil
je 0x14005af9c
mov edi, dword [rsi + 0x2c]
jmp 0x14005af9c
mov ecx, r14d
call fcn.14005417c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005af9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005af9c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005af95
mov eax, dword [rsi + 0x2c]
jmp 0x14005af9a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004d868
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14005c020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005c048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005c048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400021e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000222a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000222a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000222a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000222a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000222a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000222c
xor al, al
add rsp, 0x28
ret
Function at 0x140001ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rax, qword [0x140001220]
and qword [rsp + 0x38], 0
lea rcx, [rbp - 0x54]
mov qword [rsp + 0x50], rax
mov rax, qword [0x140001228]
xor edx, edx
mov qword [rsp + 0x58], rax
mov rax, qword [0x140001230]
mov r8d, 0x1ac
mov qword [rsp + 0x60], rax
mov rax, qword [0x140001238]
xor ebx, ebx
mov qword [rsp + 0x68], rax
mov rax, qword [0x140001240]
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x70], rax
mov rax, qword [0x140001248]
mov qword [rsp + 0x78], rax
mov rax, qword [0x140001250]
mov qword [rbp - 0x80], rax
mov rax, qword [0x140001258]
mov qword [rbp - 0x78], rax
mov rax, qword [0x140001260]
mov qword [rbp - 0x70], rax
mov rax, qword [0x140001268]
mov qword [rbp - 0x68], rax
mov rax, qword [0x140001270]
mov qword [rbp - 0x60], rax
mov eax, dword [0x140001278]
mov dword [rbp - 0x58], eax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x50]
call fcn.140001658
test eax, eax
js 0x140001e23
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e23
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, [0x140001140]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001e23
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wtoi]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001e33
call qword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140003d00
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret

Function at 0x14000240b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov r9, rcx
mov rbx, r8
mov ebp, edx
mov ecx, dword [rax + rcx + 0x88]
test ecx, ecx
je 0x1400024a6
cmp dword [rax + r9 + 0x8c], 0
je 0x1400024a6
lea rax, [r9 + rcx]
mov r11d, dword [rax + 0x18]
test r11d, r11d
je 0x1400024a6
mov ecx, dword [rax + 0x20]
xor r8d, r8d
mov edi, dword [rax + 0x1c]
add rcx, r9
mov esi, dword [rax + 0x24]
add rdi, r9
add rsi, r9
test r11d, r11d
je 0x1400024a6
mov r10d, dword [rcx]
add r10, r9
mov r14, r10
xor edx, edx
mov al, byte [r10]
jmp 0x14000248e
imul edx, edx, 0x83
movsx eax, al
add edx, eax
inc r14
mov al, byte [r14]
test al, al
jne 0x14000247d
btr edx, 0x1f
cmp edx, ebp
je 0x1400024c3
inc r8d
add rcx, 4
cmp r8d, r11d
jb 0x14000246d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test rbx, rbx
jne 0x1400024d5
movzx ecx, word [rsi + r8*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x1400024a8
mov rdx, r10
mov rcx, r9
call rbx
jmp 0x1400024a8
Function at 0x1400024ec
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push rsp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x20]
test rdx, rdx
je 0x140002562
movzx eax, word [rdx + 0x48]
mov r8d, r14d
shr eax, 1
mov r9, qword [rdx + 0x50]
je 0x140002557
mov r10d, eax
movzx ecx, word [r9]
lea r9, [r9 + 2]
cmp cx, 0x61
lea eax, [rcx - 0x20]
cmovb ax, cx
imul r8d, r8d, 0x83
movzx ecx, ax
add r8d, ecx
sub r10, 1
jne 0x140002523
btr r8d, 0x1f
cmp r8d, 0x1cca9ce6
je 0x14000255c
mov rdx, qword [rdx]
jmp 0x14000250c
mov r15, qword [rdx + 0x20]
jmp 0x140002565
mov r15, r14
xor r8d, r8d
mov edx, 0x1ab9b854
mov rcx, r15
call fcn.14000240b
mov r8, rax
mov edx, 0x7f201f78
mov rcx, r15
mov rdi, rax
call fcn.14000240b
mov r8, rdi
mov edx, 0x5e893462
mov rcx, r15
mov rbx, rax
call fcn.14000240b
mov r8, rdi
mov edx, 0x6488073
mov rcx, r15
mov rsi, rax
call fcn.14000240b
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x30], 0x6c64746e
mov r15, rax
mov word [rbp + 0x34], 0x6c
call rbx
mov r8, rdi
mov edx, 0xdb579cb
mov rcx, rax
mov rbx, rax
call fcn.14000240b
mov r8, rdi
mov edx, 0x1518e9c0
mov rcx, rbx
call fcn.14000240b
xor ecx, ecx
lea r12, [0x1400026af]
mov edx, dword [r12 + 8]
mov r8d, 0x3000
mov rdi, rax
lea r9d, [rcx + 0x40]
call rsi
mov r8d, dword [r12 + 8]
lea rdx, [r12 + 0xc]
mov rcx, rax
mov rsi, rax
call rdi
mov rdx, qword [r12]
mov rax, rdx
mov byte [rbp + 0x38], dl
shr rax, 0x18
mov rcx, rdx
mov byte [rbp + 0x3b], al
mov rax, rdx
shr rax, 0x20
mov byte [rbp + 0x3c], al
mov rax, rdx
shr rax, 0x28
shr rcx, 8
mov byte [rbp + 0x3d], al
mov rax, rdx
mov byte [rbp + 0x39], cl
mov rcx, rdx
shr rax, 0x30
shr rcx, 0x10
shr rdx, 0x38
mov byte [rbp + 0x3a], cl
mov byte [rbp + 0x3e], al
mov byte [rbp + 0x3f], dl
cmp dword [r12 + 8], r14d
jbe 0x140002687
mov edx, dword [r12 + 8]
mov rcx, rsi
mov rax, r14
inc r14
and eax, 7
mov al, byte [rbp + rax + 0x38]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14000266f
call rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call r15
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400036b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x230], rax
or rdi, 0xffffffffffffffff
xor ebx, ebx
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400036dc
mov edx, 0x104
cmp rax, rdx
jbe 0x140003712
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003d00
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
mov r8, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
lea rax, [rsp + 0x20]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140003725
lea rax, [rdi + rdi]
sub rax, 2
cmp word [rsp + rax + 0x20], 0x5c
je 0x140003746
cmp word [rsp + rax + 0x20], 0x2f
jne 0x140003755
cmp rax, 0x208
jae 0x14000376a
mov word [rsp + rax + 0x20], bx
jmp 0x140003732
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
jmp 0x1400036f1
call fcn.140003ed8
int3

Function at 0x140003d24
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000404c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004098
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140004090
cmp dword [rcx + 0x3c], edx
jl 0x140004090
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140004090
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140004098
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400041f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005008]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x1400042af
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
shl rax, 0x18
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x10]
mov eax, eax
xor rax, qword [rbp + 0x10]
xor rax, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x140005008], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140005010], rax
add rsp, 0x20
pop rbp
ret
Function at 0x140002730
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rdx, qword [rdx + 0x10]
mov rax, rdx
cmp rdx, 0xf
jbe 0x14000278c
call fcn.140019d70
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0xf
jbe 0x1400027a4
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400027aa
mov r14, rdi
mov rcx, rdi
lea r13, [rcx + rax]
cmp rdi, r13
je 0x1400028a1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140002846
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000282d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140002822
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000283c
mov rcx, rbx
call fcn.140019ec0
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x1400027f0
inc r14
cmp r14, r13
jne 0x1400027c0
cmp r15d, 0xfffffffa
jle 0x1400028a1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140002899
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000288e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400028a1
mov rcx, rbx
call fcn.140019ec0
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1400028e9
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400028d5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400028cd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400028e0
mov r9b, 0x3d
mov rcx, rbx
call fcn.140019ec0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1400028b0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400031a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000320f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400031e0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14009eae0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.1400031a0
test rax, rax
jne 0x14000327c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009eae0
add rsp, 0x30
pop rdi
ret
jns 0x14000329e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x14000329e
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009eae0
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1400032d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400032b0
mov rsi, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009eae0
add rsp, 0x30
pop rdi
ret
Function at 0x1400037d0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140003808
cmp ax, 0x17
jne 0x14000387d
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14000387d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140003862
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140013ec0
mov al, 1
jmp 0x14000387f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14009eae0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140004dd0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140004e4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004e20
test ebx, ebx
jle 0x140004e62
mov rcx, qword [rdi + 8]
call fcn.140003240
test al, al
je 0x140004e62
mov al, 1
jmp 0x140004e64
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14009eae0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004e90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rdi, r8
mov r14, rdx
cmova rdi, rax
mov rsi, qword [rbx + 0x50]
cmp rcx, rsi
jae 0x140004f00
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x140004ee7
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1400031a0
test rax, rax
jg 0x140004f27
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x140004fd0
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140004f77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004f50
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140004f95
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140004fa7
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140004ff4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140004fd0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005010
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rbp, r8
mov r10, qword [rcx + 0x28]
mov r14, rdx
mov r9, qword [rcx + 0x20]
mov rdi, rcx
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r10d
nop word [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000509d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140005070
test ebx, ebx
jle 0x1400050db
mov rcx, qword [rdi + 8]
call fcn.140003240
test al, al
je 0x1400050db
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1400050d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400050b2
mov rax, rbx
jmp 0x1400050e2
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14009eae0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400df000]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400051e9
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400037d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14009eae0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x140013c50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140013c84
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140013c70
ret