joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2e40
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov eax, dword [0x1400acd80]
mov rbx, rcx
mov rsi, rdx
mov rbp, r8
test eax, eax
je 0x1400a2f00
test rbx, rbx
je 0x1400a3090
test rsi, rsi
je 0x1400a3090
cmp rsi, 0x1b
jbe 0x1400a2ef0
movzx edx, word [rbx]
movzx r9d, byte [rbx + 3]
lea rcx, str.sframe_decode:_magic0x_x_version_u_flags_u_n
movzx r8d, byte [rbx + 2]
call fcn.140067900
movzx eax, word [rbx]
cmp ax, 0xdee2
je 0x1400a2fc0
cmp ax, 0xe2de
jne 0x1400a2ef0
mov edx, 1
mov ecx, 0x40
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
jne 0x1400a2f30
test rbp, rbp
je 0x1400a2ed8
mov dword [rbp], 0x7d1
nop dword [rax]
xor edi, edi
mov rax, rdi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test rbp, rbp
je 0x1400a2ed8
mov dword [rbp], 0x7d3
jmp 0x1400a2ed8
lea rcx, str.SFRAME_DEBUG
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov dword [0x1400acd80], 1
test rax, rax
setne al
movzx eax, al
mov dword [0x1400ac680], eax
jmp 0x1400a2e65
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, rax
test rax, rax
je 0x1400a2ec5
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rcx, r12
call fcn.140091d10
xor r8d, r8d
mov rdx, rsi
call fcn.140091d60
test eax, eax
jne 0x1400a30b8
mov qword [rdi + 0x38], r12
mov rbx, r12
mov r13d, 1
mov rax, qword [rbx]
mov rcx, qword [rbx + 8]
movdqu xmm0, xmmword [rbx + 0xc]
mov qword [rdi + 8], rcx
mov qword [rdi], rax
movups xmmword [rdi + 0xc], xmm0
cmp ax, 0xdee2
je 0x1400a2ff0
test rbp, rbp
je 0x1400a2f9f
mov dword [rbp], 0x7d1
test r12, r12
je 0x1400a2fad
test r13d, r13d
jne 0x1400a30a8
lea rcx, [rsp + 0x28]
call fcn.1400a3390
jmp 0x1400a2ed8
mov edx, 1
mov ecx, 0x40
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
je 0x1400a2ec5
xor r13d, r13d
xor r12d, r12d
jmp 0x1400a2f76
cmp byte [rdi + 2], 1
jne 0x1400a2f93
cmp byte [rdi + 3], 3
ja 0x1400a2f93
mov eax, dword [rdi + 0x14]
cmp dword [rdi + 0x18], eax
jb 0x1400a2f93
movzx eax, byte [rdi + 7]
lea rsi, [rbx + rax + 0x1c]
mov eax, dword [rdi + 8]
mov ebx, eax
shl ebx, 4
add ebx, eax
movsxd r14, ebx
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rdi + 0x20], rax
mov rcx, rax
test rax, rax
je 0x1400a2f93
mov r8, r14
mov rdx, rsi
add rsi, r14
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, ebx
lea rcx, str._u_total_fidx_size_n
call fcn.140067900
mov r14d, dword [rdi + 0x10]
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rdi + 0x28], rax
mov rcx, rax
test rax, rax
je 0x1400a2f93
mov rdx, rsi
mov r8, r14
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov dword [rdi + 0x30], r14d
mov edx, r14d
lea rcx, str._u_total_fre_bytes_n
call fcn.140067900
jmp 0x1400a2eda
test rbp, rbp
je 0x1400a2ed8
mov dword [rbp], 0x7d2
jmp 0x1400a2ed8
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400a2fad
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test rbp, rbp
jne 0x1400a2ef5
jmp 0x1400a2ed8
Function at 0x1400aabe0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
mov r10d, 0x80000000
test ecx, ecx
je 0x1400aac54
mov r11d, 3
lea rbx, [0x1400e24a0]
jmp 0x1400aac08
add r11d, 1
sar ecx, 1
je 0x1400aac54
test cl, 1
je 0x1400aac00
mov eax, r11d
mov edx, r10d
mov r8d, 0x80000000
xor r10d, r10d
and eax, 0x1f
mov r9d, dword [rbx + rax*4]
jmp 0x1400aac3b
mov eax, edx
shr edx, 1
and eax, 1
shr r8d, 1
neg eax
and eax, 0xedb88320
xor edx, eax
test r9d, r8d
je 0x1400aac28
lea eax, [r8 - 1]
xor r10d, edx
test eax, r9d
jne 0x1400aac28
add r11d, 1
sar ecx, 1
jne 0x1400aac08
mov eax, r10d
pop rbx
ret
Function at 0x140003da0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [0x14012d138]
cmp byte [rax + 0x89], 0
je 0x140003eb9
mov qword [rsp + 0x50], rbx
mov ebx, 0xa
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x2c], ebx
lea ecx, [rbx + 0x2e]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140003eb4
lea ecx, [rbx + 0x2f]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140003e14
lea r8d, [rbx + 0x1e]
mov word [rsp + 0x2a], bx
lea rdx, [rsp + 0x20]
lea ecx, [rbx - 9]
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 0x30
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140003e40
mov eax, reloc.WS2_32.dll_inet_addr
lea rdx, [rsp + 0x20]
mov word [rsp + 0x2a], ax
lea r8d, [rax + 0x1d]
lea ecx, [rax - 0xa]
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 0xbd
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140003e6c
mov eax, ntohs
lea rdx, [rsp + 0x20]
mov word [rsp + 0x2a], ax
lea r8d, [rax + 0x1c]
lea ecx, [rax - 0xb]
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 0xbb
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140003e98
mov eax, ntohs
lea rdx, [rsp + 0x20]
mov word [rsp + 0x2a], ax
lea r8d, [rax + 0x1b]
lea ecx, [rax - 0xc]
call qword [sym.imp.USER32.dll_SendInput]
mov eax, 9
lea rdx, [rsp + 0x20]
mov word [rsp + 0x2a], ax
lea r8d, [rax + 0x1f]
lea ecx, [rax - 8]
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c94e0
add rsp, 0x58
ret

Function at 0x140003ed0
Capabilities:
Hash data using fnv

Disassembly:
test dl, dl
mov word [rsp + 8], cx
movzx edx, cl
movabs rax, 0xcbf29ce484222325
movabs r8, 0x100000001b3
je 0x140003f60
mov r9, qword [0x14012d158]
xor rdx, rax
movzx eax, byte [rsp + 9]
imul rdx, r8
xor rdx, rax
imul rdx, r8
mov r8, qword [0x14012d180]
and r8, rdx
mov rdx, qword [0x14012d168]
add r8, r8
mov rax, qword [rdx + r8*8 + 8]
cmp rax, r9
je 0x140003f43
mov rdx, qword [rdx + r8*8]
cmp cx, word [rax + 0x10]
je 0x140003f45
cmp rax, rdx
je 0x140003f43
mov rax, qword [rax + 8]
cmp cx, word [rax + 0x10]
jne 0x140003f32
jmp 0x140003f45
xor eax, eax
test rax, rax
mov rcx, r9
cmovne rcx, rax
cmp rcx, r9
je 0x140003fc8
movss xmm0, dword [rcx + 0x14]
ret
mov r9, qword [0x14012d3e8]
xor rdx, rax
movzx eax, byte [rsp + 9]
imul rdx, r8
xor rdx, rax
imul rdx, r8
mov r8, qword [0x14012d3d8]
and rdx, qword [0x14012d400]
add rdx, rdx
mov rax, qword [r9 + rdx*8 + 8]
cmp rax, r8
je 0x140003fb1
mov rdx, qword [r9 + rdx*8]
cmp cx, word [rax + 0x10]
je 0x140003fb3
nop
cmp rax, rdx
je 0x140003fb1
mov rax, qword [rax + 8]
cmp cx, word [rax + 0x10]
jne 0x140003fa0
jmp 0x140003fb3
xor eax, eax
test rax, rax
mov rcx, r8
cmovne rcx, rax
cmp rcx, r8
je 0x140003fc8
movss xmm0, dword [rcx + 0x14]
ret
movss xmm0, dword [0x1400ddfd8]
ret
Function at 0x1400091c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400091e8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000920e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140009210
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140009269
test ecx, ecx
jle 0x140009249
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.ntdll.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140009269
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140009269
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140009290
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400092b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400092c8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400092e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400092e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009322
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.ntdll.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400093be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000935d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000939e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400093be
cmp rbx, rax
ja 0x140009370
test rbx, rbx
je 0x1400093be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400097c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400097ed
xor eax, eax
jmp 0x140009959
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009827
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009827
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140009959
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000994c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000986a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140009895
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009951
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009904
sub eax, 1
je 0x140009904
cmp eax, 2
jne 0x14000994c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009951
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009932
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000994c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140009951
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c94e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000a010
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000a0e3
cmp byte [rcx + 0x71], 0
je 0x14000a0e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000a0df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a0a4
sub eax, 1
je 0x14000a0a8
cmp eax, 2
jne 0x14000a0df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c94e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000a0d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000a0df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000a08c
xor al, al
jmp 0x14000a08c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c94e0
add rsp, 0x60
pop rbx
ret
Function at 0x14000de30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14000de65
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14000a8c0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000df95
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx r11d, byte [rax + 0x10]
movzx edx, byte [rax + 0x11]
xor r11, rbp
mov rcx, qword [rcx]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x14000df07
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14000df84
mov rdx, qword [r11 + 8]
movzx r9d, word [rax + 0x10]
cmp r9w, word [rdx + 0x10]
jne 0x14000df46
mov r10, qword [rdx]
cmp r10, rax
je 0x14000df40
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14000df84
cmp r8, rdx
je 0x14000df60
nop dword [rax + rax]
mov rdx, qword [rdx + 8]
cmp r9w, word [rdx + 0x10]
je 0x14000dfa6
cmp r8, rdx
jne 0x14000df50
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14000ded0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000df84
Function at 0x140022610
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 rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x14002266c
mov rdx, rax
call fcn.14001d610
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x140022684
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x14002268a
mov r14, rdi
mov rcx, rdi
lea r13, [rax + rcx]
cmp rdi, r13
je 0x140022781
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140022726
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 0x14002270d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140022702
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14002271c
mov rcx, rbx
call fcn.14000b790
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x1400226d0
inc r14
cmp r14, r13
jne 0x1400226a0
cmp r15d, 0xfffffffa
jle 0x140022781
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 0x140022779
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14002276e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022781
mov rcx, rbx
call fcn.14000b790
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1400227c9
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400227b5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400227ad
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400227c0
mov r9b, 0x3d
mov rcx, rbx
call fcn.14000b790
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140022790
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 0x1400232d0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
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
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140023340
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140023310
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400c94e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140023370
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
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
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400233df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400233b0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400c94e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140023ac0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1400f7028]
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 0x140023af8
cmp ax, 0x17
jne 0x140023b6d
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 0x140023b6d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140023b52
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000a450
mov al, 1
jmp 0x140023b6f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400c94e0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140023be5
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140023ac0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400c94e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x140023b90
Function at 0x140027bf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400f7028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140023be5
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140023ac0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400c94e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x140023b90