joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fef10
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor eax, eax
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov rbx, rcx
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rcx + 0x20], al
movups xmmword [rcx + 0x40], xmm0
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rcx + 0x40], al
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], 0xffffffffffffffff
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
xor ecx, ecx
call fcn.140128d80
call fcn.140128f20
mov rcx, rax
call fcn.1401237b0
mov rcx, rax
mov qword [rbx + 0x60], rax
call fcn.140124a30
mov qword [rbx + 0x68], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140336f90
add rsp, 0x1d0
pop rbx
ret
Function at 0x1401001a0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push rbx
push rsi
push r12
push r15
sub rsp, 0x68
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [r8]
xor r12d, r12d
mov qword [rsp + 0x28], rcx
mov r15, rdx
mov rbx, rcx
test rsi, rsi
jne 0x1401001f2
xorps xmm0, xmm0
lea rdx, [0x14041f239]
movups xmmword [rcx], xmm0
xor r8d, r8d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
call fcn.14010b490
jmp 0x14010034f
mov qword [rsp + 0x98], rbp
lea rax, [rdx + rsi]
mov qword [rsp + 0xa8], rdi
mov rcx, rsi
mov qword [rsp + 0x60], r14
mov rdi, r12
and ecx, 3
jne 0x140100224
cmp byte [rax - 1], 0x3d
je 0x140100224
mov rbp, r12
mov r14, r12
jmp 0x14010023d
mov ebp, 1
cmp rcx, 2
ja 0x14010023a
cmp byte [rax - 2], 0x3d
jne 0x14010023a
mov r14, r12
jmp 0x14010023d
mov r14, rbp
sub rsi, rbp
lea rcx, [rsp + 0x30]
and rsi, 0xfffffffffffffffc
mov rdx, rsi
shr rdx, 2
lea rax, [r14 + rdx*2]
add rdx, rax
add rdx, rbp
call fcn.140108b40
cmp qword [rsp + 0x48], 0xf
lea r9, [rsp + 0x30]
lea r10, [0x140421000]
cmova r9, qword [rsp + 0x30]
test rsi, rsi
je 0x1401002e3
lea rdx, [rsi - 1]
shr rdx, 2
lea r8, [r15 + 2]
inc rdx
nop dword [rax + rax]
movzx eax, byte [r8 - 2]
lea r8, [r8 + 4]
mov ecx, dword [r10 + rax*4]
movzx eax, byte [r8 - 5]
shl ecx, 6
or ecx, dword [r10 + rax*4]
movzx eax, byte [r8 - 4]
shl ecx, 6
or ecx, dword [r10 + rax*4]
movzx eax, byte [r8 - 3]
shl ecx, 6
or ecx, dword [r10 + rax*4]
mov eax, ecx
sar eax, 0x10
mov byte [r9 + rdi], al
mov eax, ecx
sar eax, 8
mov byte [r9 + rdi + 1], al
mov byte [r9 + rdi + 2], cl
add rdi, 3
sub rdx, 1
jne 0x140100290
test rbp, rbp
mov rbp, qword [rsp + 0x98]
je 0x140100331
movzx eax, byte [rsi + r15]
movzx ecx, byte [rsi + r15 + 1]
mov edx, dword [r10 + rax*4]
shl edx, 6
or edx, dword [r10 + rcx*4]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
mov byte [r9 + rdi], al
test r14, r14
je 0x140100331
movzx eax, byte [rsi + r15 + 2]
sar edx, 8
mov ecx, dword [r10 + rax*4]
shl ecx, 6
sar ecx, 8
or dl, cl
mov byte [r9 + rdi + 1], dl
movups xmm0, xmmword [rsp + 0x30]
mov r14, qword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x40]
mov rdi, qword [rsp + 0xa8]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140336f90
add rsp, 0x68
pop r15
pop r12
pop rsi
pop rbx
ret
Function at 0x140106940
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x4b0
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov r14, rcx
nop word [rax + rax]
mov rax, qword [r14]
mov rcx, qword [rax]
test rcx, rcx
je 0x140106985
call rcx
test eax, eax
jne 0x140106af3
xor edx, edx
mov dword [rsp + 0x260], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x264]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x24]
mov rbp, rax
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x260]
mov edx, 4
lea rax, [rsp + 0x20]
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1401069e0
movups xmm0, xmmword [rax]
lea rdx, [rsp + 0x260]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
mov rax, qword [rax + 0x30]
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140106ab6
nop word [rax + rax]
mov rbx, qword [r14 + 8]
lea rdi, [rbx + 0x30]
cmp rbx, rdi
je 0x140106aa1
nop dword [rax]
mov rsi, qword [rbx]
lea rdx, [rsp + 0x28c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140106ad8
add rbx, 8
cmp rbx, rdi
jne 0x140106a80
lea rdx, [rsp + 0x260]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140106a70
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140101ec0
test al, al
jne 0x140106af3
mov ecx, gethostbyaddr
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140106970
mov rdx, rsi
lea rcx, str._ls_n
call fcn.1400fcb50
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140107040
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 0x140107068
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 0x14010708e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140107090
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1401070e9
test ecx, ecx
jle 0x1401070c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.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 0x1401070e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1401070e9
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 0x140107110
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 0x140107132
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140107148
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 0x140107164
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140107166
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1401071a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.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 0x14010723e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1401071dd
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 0x14010721e
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 0x14010723e
cmp rbx, rax
ja 0x1401071f0
test rbx, rbx
je 0x14010723e
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 0x1401076a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1401076cd
xor eax, eax
jmp 0x140107839
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140107707
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140107707
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 0x140107839
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14010782c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14010774a
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 0x140107775
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 0x140107831
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 0x1401077e4
sub eax, 1
je 0x1401077e4
cmp eax, 2
jne 0x14010782c
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 0x140107831
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140107812
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 0x14010782c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140107831
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140336f90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140107f74
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140107f60
ret
Function at 0x140109270
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140109343
cmp byte [rcx + 0x71], 0
je 0x140109343
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14010933f
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 0x140109304
sub eax, 1
je 0x140109308
cmp eax, 2
jne 0x14010933f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140336f90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140109336
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 0x14010933f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1401092ec
xor al, al
jmp 0x1401092ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140336f90
add rsp, 0x60
pop rbx
ret

Function at 0x14010a350
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, reloc.WS2_32.dll_recv
call fcn.140336fb0
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1401177b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14010a3cc
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140336f90
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1401176f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r8
mov rsi, rdx
mov ecx, reloc.WS2_32.dll_getservbyport
call fcn.140336fb0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rdx, rdi
mov rcx, rax
call fcn.140108ca0
mov rcx, qword [rdi + 0x20]
mov qword [rbx + 0x20], rcx
mov rcx, qword [rdi + 0x28]
mov qword [rbx + 0x28], rcx
mov rcx, qword [rdi + 0x30]
mov qword [rbx + 0x30], rcx
mov qword [rsp + 0x30], rbx
lea rdi, [rsi + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14011f4b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x140117798
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140336f90
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140120580
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14012064c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14012064c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140120665
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14012063c
cmp byte [rax], 0x5c
jne 0x140120636
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140120636
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140120622
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140120633
test r8b, 0x10
jne 0x140120636
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140120636
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14011eb50
test edi, edi
jne 0x1401205a0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14011eb40
int3

Function at 0x140122514
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14012254e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140122553
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14012259c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14033b000]
cmp byte [rcx + rax], 0
je 0x14012259c
dec r8
sub rdx, 1
jne 0x140122582
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14016d7b0
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x690
call fcn.140337720
sub rsp, rax
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rsi, qword [rsp + 0x6d8]
mov eax, edx
xor edx, edx
mov r10d, ecx
mov dword [rsp + 0x460], 0
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x40], edx
cmp ecx, 0xffffffff
je 0x14016d818
test eax, eax
je 0x14016d818
mov qword [rsp + 0x468], r10
mov dword [rsp + 0x460], 1
cmp r8d, 0xffffffff
je 0x14016d839
test r9d, r9d
je 0x14016d839
mov eax, r8d
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x250], 1
cmp r10d, 0xffffffff
je 0x14016d84d
mov edx, 1
mov qword [rsp + 0x48], r10
mov dword [rsp + 0x40], edx
cmp r8d, 0xffffffff
je 0x14016d882
xor eax, eax
test edx, edx
je 0x14016d86d
mov r9d, r8d
nop dword [rax]
cmp qword [rsp + rax*8 + 0x48], r9
je 0x14016d86d
inc eax
cmp eax, edx
jb 0x14016d860
cmp eax, edx
jne 0x14016d882
cmp edx, 0x40
jae 0x14016d882
mov edx, r8d
mov qword [rsp + rax*8 + 0x48], rdx
inc dword [rsp + 0x40]
mov rbx, qword [rsp + 0x6d0]
cmp r8d, r10d
mov edi, r8d
cmovle edi, r10d
cmp r10d, 0xffffffff
jne 0x14016d8ac
cmp r8d, r10d
jne 0x14016d8ac
cmp rbx, 0xffffffffffffffff
jb 0x14016d8ac
xor eax, eax
jmp 0x14016d9e3
mov qword [rsp + 0x6b8], rbp
mov qword [rsp + 0x688], r12
mov qword [rsp + 0x680], r15
test rsi, rsi
je 0x14016d8d1
mov rcx, rsi
call fcn.1401d9ce0
lea ebp, [rdi + 1]
movabs r15, 0x12e0be826d694b2f
movabs r12, 0x624dd2f1a9fbe77
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jae 0x14016d97b
call fcn.1401c8800
cmp rax, rbx
jbe 0x14016d90b
mov ecx, 0x3e7
jmp 0x14016d92f
mov rcx, rbx
sub rcx, rax
mov rax, rcx
not rax
cmp rax, 0x3e7
jae 0x14016d928
mov rcx, 0xffffffffffffffff
jmp 0x14016d92f
add rcx, 0x3e7
mov rax, r15
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x1d
mov dword [rsp + 0x30], eax
imul rax, rax, 0x3b9aca00
sub rcx, rax
mov rax, r12
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
mov dword [rsp + 0x34], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
jmp 0x14016d97d
xor eax, eax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x250]
mov ecx, ebp
lea rdx, [rsp + 0x460]
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14016d9b7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x14016d8f0
mov r15, qword [rsp + 0x680]
mov r12, qword [rsp + 0x688]
mov rbp, qword [rsp + 0x6b8]
test rsi, rsi
je 0x14016d9dc
mov rcx, rsi
call fcn.1401d9c70
not edi
shr edi, 0x1f
mov eax, edi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140336f90
add rsp, 0x690
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401805b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, gethostbyaddr
call fcn.140337720
sub rsp, rax
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [rdx + 0x18]
lea r9, [rsp + 0x20]
mov rdi, qword [rdx]
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.14017ff10
test eax, eax
je 0x140180635
movzx ecx, byte [rdi]
shr cl, 3
not cl
and cl, 0x10
or cl, 0xf
and cl, byte [rsp + 0x20]
xor cl, byte [rdi]
mov byte [rdi], cl
and cl, 3
add cl, 1
je 0x140180630
lea rdx, [rsp + 0x21]
movzx ecx, cl
sub rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rdx + rbx]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x140180620
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140336f90
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140180650
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, gethostbyaddr
call fcn.140337720
sub rsp, rax
mov rax, qword [0x14044d780]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [rdx + 0x18]
lea r9, [rsp + 0x20]
mov rdi, qword [rdx]
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.14017ff10
test eax, eax
je 0x1401806d9
movzx eax, byte [rdi]
and al, 3
add al, 1
je 0x1401806c0
lea rdx, [rsp + 0x21]
movzx ecx, al
sub rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rbx]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x1401806b0
movzx ecx, byte [rdi]
mov eax, 1
shr cl, 3
not cl
and cl, 0x10
or cl, 0xf
and cl, byte [rsp + 0x20]
xor byte [rdi], cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140336f90
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14019ef40
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140337720
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret