joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140102d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1408a8678]
mov edx, dword [rdx + 8]
mov r8d, 0x40
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140102db8
mov ecx, dword [rbx + 8]
mov qword [rsp + 0x30], rdi
call fcn.140100b40
mov rdi, rax
test rax, rax
je 0x140102d83
mov r8d, dword [rbx + 8]
mov rdx, rax
mov rcx, qword [rbx]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [rbx + 8]
lea r9, [0x1408a8678]
mov r8d, dword [0x1408a8678]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x140102db8
mov dword [0x1408a8678], 0
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14010eaf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14010eb14
xor eax, eax
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 0x80], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14010eb54
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14010eb54
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14010ec81
cmp qword [rdi + 0x80], 0
je 0x14010ec7c
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x14010eb8e
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14010ebb9
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
jmp 0x14010ec81
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14010ec2e
sub eax, 1
je 0x14010ec2e
cmp eax, 2
jne 0x14010ec7c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
jmp 0x14010ec81
mov rbx, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rbx, rax
je 0x14010ec5f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14010ec7c
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14010ec81
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140111320
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov edi, ecx
mov r8d, dword [0x1408a8a78]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + r8*8]
lea rsi, [0x1408a72b0]
mov eax, dword [rcx + rax]
cmp dword [0x1408a8638], eax
jg 0x1401113c9
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], ebx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400d1320
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rsi + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x140111390
mov dword [0x1408a72b0], 0x270
lea rcx, [0x1408a8638]
call fcn.140224b1c
jmp 0x14011135e
lea rcx, [0x1408a8638]
call fcn.140224b88
cmp dword [0x1408a8638], 0xffffffff
jne 0x14011135e
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [0x1408a8634], 0xffffffff
mov dword [0x1408a72b4], eax
mov r8d, 1
jmp 0x140111390
Function at 0x140116470
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rdi, rcx
mov edx, dword [0x1408a8a78]
mov ecx, 4
mov rbx, qword [rax + rdx*8]
add rbx, rcx
mov eax, dword [rbx]
cmp dword [0x1408a8740], eax
jg 0x1401165ea
mov eax, dword [rbx]
cmp dword [0x1408a8750], eax
jg 0x14011661f
mov eax, dword [rbx]
cmp dword [0x1408a8760], eax
jg 0x1401165a0
mov rax, qword [0x1408a8748]
xor edi, edi
mov ebx, edi
cmp di, word [rax + 6]
jae 0x14011656b
nop word [rax + rax]
mov rcx, qword [0x1408a8758]
lea r9, [0x1408a8734]
mov edx, 0x28
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140116593
mov rax, qword [0x1408a8758]
lea r9, [0x1408a8734]
xorps xmm0, xmm0
xor ecx, ecx
mov edx, 0x28
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov r8d, dword [0x1408a8734]
mov rcx, qword [0x1408a8758]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140116593
mov rax, qword [0x1408a8758]
inc rbx
add rax, 0x28
mov qword [0x1408a8758], rax
mov rax, qword [0x1408a8748]
movzx ecx, word [rax + 6]
cmp rbx, rcx
jb 0x1401164e0
mov dword [0x1408a8734], edi
mov al, 1
mov qword [0x1408a8738], rdi
mov qword [0x1408a8748], rdi
mov qword [0x1408a8758], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
lea rcx, [0x1408a8760]
call fcn.140224b88
cmp dword [0x1408a8760], 0xffffffff
jne 0x1401164c2
mov rax, qword [0x1408a8748]
lea rcx, [0x1408a8760]
movzx edx, word [rax + 0x14]
mov rax, qword [0x1408a8748]
add rax, 0x18
add rdx, rax
mov qword [0x1408a8758], rdx
call fcn.140224b1c
jmp 0x1401164c2
lea rcx, [0x1408a8740]
call fcn.140224b88
cmp dword [0x1408a8740], 0xffffffff
jne 0x1401164a6
mov rax, qword [rdi + 0x10]
lea rcx, [0x1408a8740]
mov qword [0x1408a8738], rax
call fcn.140224b1c
jmp 0x1401164a6
lea rcx, [0x1408a8750]
call fcn.140224b88
cmp dword [0x1408a8750], 0xffffffff
jne 0x1401164b4
mov rax, qword [0x1408a8738]
lea rcx, [0x1408a8750]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [rdi + 0x10]
mov qword [0x1408a8748], rdx
call fcn.140224b1c
jmp 0x1401164b4
Function at 0x1401166f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140116721
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14011673f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140116789
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140116801
mov rcx, rbp
call fcn.1400eb7d0
cmp rbx, 0xfff
jbe 0x1401167e1
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140116822
cmp rbx, rax
ja 0x1401167b0
test rdi, rdi
je 0x140116801
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x140116804
Function at 0x140116830
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140116858
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1401168cc
test rax, rax
jle 0x1401168ac
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1401168cc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1401168cc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x1401219e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
xor eax, eax
cmp byte [0x1408a8818], al
jne 0x140121a99
movdqa xmm0, xmmword [str.Hf4sr9nt_okq]
movdqa xmm1, xmmword [0x140381610]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [0x140381630]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x140381430]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [str._7g_3k9_AK]
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm1
mov dword [rsp + 0x90], 0x100110f
nop dword [rax]
lea ecx, [rax + 0x11]
xor byte [rsp + rax + 0x40], cl
lea ecx, [rax + 0x12]
xor byte [rsp + rax + 0x41], cl
add rax, 2
cmp rax, 0x52
jb 0x140121a50
lea r9, [rsp + 0xb0]
mov byte [rsp + 0x93], 0
lea r8, [rsp + 0x92]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14006d490
lea rcx, [rsp + 0x20]
call fcn.140128a70
add rsp, 0xa8
ret
Function at 0x1401298d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x1400
call fcn.140224c40
sub rsp, rax
mov rax, qword [0x140714d80]
xor rax, rsp
mov qword [rsp + 0x13f8], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
mov dword [rsp + 0x24], ebx
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ebp, 1
mov ecx, ebp
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140129930
mov dword [rsp + 0x50], 0x270
lea rcx, [rsp + 0x50]
call fcn.1400e4170
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 3
ja 0x140129988
nop
lea rcx, [rsp + 0x50]
call fcn.1400e4170
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 4
jb 0x140129970
shr rax, 0x20
lea esi, [rax - 0x7ffffffb]
mov r14d, 0x80000000
xor esi, r14d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], bl
mov dword [rsp + 0x24], ebp
jbe 0x140129abd
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.1400e4170
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 5
ja 0x1401299f8
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.1400e4170
mov ecx, eax
lea rax, [rcx + rcx*4]
add rax, rax
cmp eax, 6
jb 0x1401299e0
shr rax, 0x20
lea r8d, [rax + r14]
xor r8d, r14d
lea r10, [rsp + 0x13f5]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x140129a10
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x13f5]
mov rdx, r10
lea rcx, [rsp + 0x28]
call fcn.14006d490
or ebp, 6
mov dword [rsp + 0x24], ebp
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14006ec50
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140129ab3
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140129aae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140129ae8
call fcn.140224898
inc ebx
cmp ebx, esi
jl 0x1401299c0
mov rax, rdi
mov rcx, qword [rsp + 0x13f8]
xor rcx, rsp
call fcn.140225440
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140129b70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rcx, str.ALLUSERSPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140129bd0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x140129bb7
mov rdx, rax
mov rcx, rbx
call fcn.14006d8c0
jmp 0x140129c84
lea rcx, [rsp + 0x40]
call fcn.140123850
nop
mov rsi, rax
cmp qword [rax + 0x18], 7
jbe 0x140129be8
mov rsi, qword [rax]
mov rbp, qword [rax + 0x10]
call fcn.140224058
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
test rbp, rbp
je 0x140129c7a
cmp rbp, 0x7fffffff
ja 0x140129ca6
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov ecx, eax
call fcn.1402240c8
mov rdi, rax
shr rax, 0x20
test eax, eax
jne 0x140129cb1
movsxd rdx, edi
xor r8d, r8d
mov rcx, rbx
call fcn.1401125b0
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140129c5d
mov r9, qword [rbx]
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rdx, rsi
mov ecx, r14d
call fcn.1402240c8
mov rcx, rax
shr rax, 0x20
test eax, eax
jne 0x140129c9c
lea rcx, [rsp + 0x40]
call fcn.1400ebdc0
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
shr rcx, 0x20
call fcn.1400eba60
int3
mov ecx, socket
call fcn.1400eba20
int3
shr rdi, 0x20
mov ecx, edi
call fcn.1400eba60
int3
Function at 0x14013b6c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x140143050
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140143132
call fcn.1401653e0
test al, al
jne 0x140143132
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140143082
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.14016f2f0
test rax, rax
je 0x1401430c7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.14016f2f0
mov rsi, rax
test rax, rax
je 0x1401430c7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x1401430fb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140158730
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1401430e0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14014b660
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140714d80]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rcx + 0x20], r8d
mov rdi, rcx
mov rax, qword [rdx]
mov ebp, 0x1b
mov r8, qword [rdx + 0x18]
mov ecx, dword [rax + 8]
and ecx, 0xa
cmp cl, 0xa
jne 0x14014b6b6
mov rbx, qword [r8 + 0xf0]
mov rsi, qword [r8 + 0xf8]
mov eax, dword [r8 + 0x100]
jmp 0x14014b6c5
mov rbx, qword [r8 + 0x68]
mov rsi, qword [r8 + 0x70]
mov eax, dword [r8 + 0x7cc]
xor r14d, r14d
mov dword [rdi + 0x1c], eax
test rbx, rbx
je 0x14014b7f4
cmp byte [rbx], r14b
je 0x14014b7f4
mov rcx, rbx
call qword [case.0x14014c91c.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x14014b7f9
test rsi, rsi
je 0x14014b72e
mov r8, rsi
sub r8, rbx
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x14014b713
inc rbx
test eax, eax
jne 0x14014b700
test edx, edx
je 0x14014b72e
mov rcx, rsi
call qword [case.0x14014c91c.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x14014b732
jmp 0x14014b7f9
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x14014b78b
cmp byte [rbx], r14b
je 0x14014b78b
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14014b765
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x14014b82c
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14014b78b
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x14014b82c
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x14014b7a0
test rbx, rbx
je 0x14014b7b8
cmp byte [rax + rbx - 1], 0x2e
jne 0x14014b7b8
dec rbx
cmp rbx, 0xffff
jae 0x14014b7ef
lea rdx, [rbx + 1]
mov ecx, 1
call qword [0x140713ef8]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14014b7f9
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.140158780
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x14014b82c
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x14014b808
call qword [fcn.140364e7a]
mov rcx, qword [rdi + 0x10]
call qword [fcn.140364e7a]
mov rcx, qword [rdi]
call qword [fcn.140364e7a]
mov eax, ebp
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi], r14
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140225440
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140151f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa6e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140152009
cmp qword [rcx + 0x280], 0
je 0x140151fbe
mov qword [rsp + 0x40], rbx
call fcn.14013d410
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14013df10
mov rcx, qword [rdi + 0x1f8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x280]
movzx edx, bl
mov rcx, rdi
call fcn.14013df10
mov rbx, qword [rsp + 0x40]
jmp 0x140152009
mov ecx, esi
test edx, edx
je 0x140151fce
sub ecx, 1
je 0x140151fce
cmp ecx, 1
jne 0x140152009
mov r9, qword [rdi + 0x1f0]
lea rax, [0x140385970]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1f0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140159fc0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1408a89a0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14015a024
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140192e30
test al, al
je 0x14015a018
mov dword [0x1408a89a0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1408a89a0], 1
jmp 0x14015a029
cmp eax, 2
je 0x14015a07b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14015a05a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14015a07b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret