joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059fb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1403c0f00]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140059fe4
xor eax, eax
jmp 0x14005a1e1
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14005a016
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call 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]
jmp 0x14005a1e1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14005a0c8
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140006f70
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
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, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140007660
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
nop
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14005a1d1
mov rcx, qword [rsp + 0x80]
call fcn.14005ae60
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14005a17e
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14005a179
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14005a1e1
jmp 0x14005a0f4
cmp qword [rsp + 0x50], 0
jbe 0x14005a1d1
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140331c20
add rsp, 0x78
ret
Function at 0x14005af20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1403c0f00]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14005af5d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14005af64
mov al, 1
jmp 0x14005b0bc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140010220
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140010220
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.1400101e0
movzx eax, al
test eax, eax
je 0x14005afb9
xor al, al
jmp 0x14005b0bc
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14005b029
cmp dword [rsp + 0x30], 1
je 0x14005b035
cmp dword [rsp + 0x30], 3
je 0x14005b0aa
jmp 0x14005b0ba
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14005b081
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14005b081
xor al, al
jmp 0x14005b0bc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14005b09b
mov dword [rsp + 0x34], 1
jmp 0x14005b0a3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14005b0bc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14005b0bc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140331c20
add rsp, 0xa8
ret
Function at 0x140106dd0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov r9, rcx
mov dword [rcx], edx
xor r10d, r10d
call fcn.1400076f0
movsx ebx, al
call fcn.1400fbbc0
movsx edx, al
imul ebx, edx
call fcn.1400fbbf0
mov r11d, dword [rsp + 0x48]
movsx edi, al
lea ebp, [rdi + rbx*8]
lea esi, [rdi + rbx]
nop word [rax + rax]
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
xor edx, edx
movsx ecx, byte [reloc.WS2_32.dll_htonl]
add eax, ebp
div ecx
movsx ecx, byte [section..data]
xorps xmm2, xmm2
sub eax, ecx
xor edx, edx
cvtsi2sd xmm2, rax
movsx eax, byte [reloc.WS2_32.dll_getsockopt]
movd xmm1, eax
movsx eax, byte [reloc.WS2_32.dll_closesocket]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
movsd qword [rsp + 0x40], xmm1
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
movsx ecx, byte [reloc.WS2_32.dll_htonl]
add eax, esi
div ecx
movsx ecx, byte [section..data]
cmp eax, ecx
je 0x140106ec7
call fcn.1400fbbd0
movsx edx, al
movsx eax, byte [0x140647189]
imul edx, eax
lea r8d, [rdx + rdx*4]
add r8d, r8d
call fcn.1400fbc00
movsx ecx, al
sub r8d, ecx
call fcn.1400fbbe0
movsx ecx, al
add r8d, ecx
movsx ecx, byte [reloc.WS2_32.dll_closesocket]
add ecx, r8d
je 0x140106ec7
mov r11d, 5
jmp 0x140106f1b
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
xor edx, edx
imul ecx, ebx, 7
add ecx, edi
add eax, ecx
movsx ecx, byte [reloc.WS2_32.dll_htonl]
div ecx
movsx ecx, byte [section..data]
cmp eax, ecx
je 0x140106f1b
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
xor edx, edx
movsx ecx, byte [reloc.WS2_32.dll_htonl]
add eax, esi
div ecx
movsx ecx, byte [section..data]
xorps xmm0, xmm0
sub eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [rsp + 0x40]
cvttsd2si r11d, xmm0
cmp r10d, r11d
jge 0x140106f5d
mov edx, 1
nop word [rax + rax]
mov ecx, dword [r9 + rdx*4 - 4]
shr ecx, 0x1e
xor ecx, dword [r9 + rdx*4 - 4]
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r9 + rdx*4], eax
inc rdx
cmp rdx, 0x270
jb 0x140106f30
inc r10d
jmp 0x140106e10
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402af330
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 0x1402b6c60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1402b6d42
call fcn.1402d8fd0
test al, al
jne 0x1402b6d42
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1402b6c92
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1402e2ee0
test rax, rax
je 0x1402b6cd7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1402e2ee0
mov rsi, rax
test rax, rax
je 0x1402b6cd7
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 0x1402b6d0b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1402cc320
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1402b6cf0
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 0x1402bf250
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 [0x1403c0f00]
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 0x1402bf2a6
mov rbx, qword [r8 + 0xf0]
mov rsi, qword [r8 + 0xf8]
mov eax, dword [r8 + 0x100]
jmp 0x1402bf2b5
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 0x1402bf3e4
cmp byte [rbx], r14b
je 0x1402bf3e4
mov rcx, rbx
call qword [case.0x1402c050c.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x1402bf3e9
test rsi, rsi
je 0x1402bf31e
mov r8, rsi
sub r8, rbx
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x1402bf303
inc rbx
test eax, eax
jne 0x1402bf2f0
test edx, edx
je 0x1402bf31e
mov rcx, rsi
call qword [case.0x1402c050c.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x1402bf322
jmp 0x1402bf3e9
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x1402bf37b
cmp byte [rbx], r14b
je 0x1402bf37b
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1402bf355
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x1402bf41c
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 0x1402bf37b
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x1402bf41c
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1402bf390
test rbx, rbx
je 0x1402bf3a8
cmp byte [rax + rbx - 1], 0x2e
jne 0x1402bf3a8
dec rbx
cmp rbx, 0xffff
jae 0x1402bf3df
lea rdx, [rbx + 1]
mov ecx, 1
call qword [0x1403c0098]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1402bf3e9
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.1402cc370
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x1402bf41c
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x1402bf3f8
call qword [str.:03_]
mov rcx, qword [rdi + 0x10]
call qword [str.:03_]
mov rcx, qword [rdi]
call qword [str.:03_]
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.140331c20
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1402c5b30
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 0x1402c5bf9
cmp qword [rcx + 0x280], 0
je 0x1402c5bae
mov qword [rsp + 0x40], rbx
call fcn.1402b1010
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1402b1b10
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.1402b1b10
mov rbx, qword [rsp + 0x40]
jmp 0x1402c5bf9
mov ecx, esi
test edx, edx
je 0x1402c5bbe
sub ecx, 1
je 0x1402c5bbe
cmp ecx, 1
jne 0x1402c5bf9
mov r9, qword [rdi + 0x1f0]
lea rax, [0x140348a40]
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 0x1402cdbb0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140647420]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1402cdc14
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140306a20
test al, al
je 0x1402cdc08
mov dword [0x140647420], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140647420], 1
jmp 0x1402cdc19
cmp eax, 2
je 0x1402cdc6b
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 0x1402cdc4a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1402cdc6b
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
Function at 0x1402ce8c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1403c0f00]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x1402cea0e
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax + 0x3e0]
test dword [rcx + 0x8c], 0x800
jne 0x1402cea0e
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1402ce99e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1402a9e90
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1402c5c10
mov eax, 2
jmp 0x1402cea10
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x100]
lea r8, [rbx + 0xce]
lea rcx, [rsp + 0x30]
call fcn.1402c8720
test al, al
jne 0x1402cea0e
mov qword [rsp + 0x1e0], rdi
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1402a9e90
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1402c5c10
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1402cea10
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140331c20
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret

Function at 0x1402d16a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx r8d, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, r8d
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x10
jl 0x1402d16b0
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret

Function at 0x1402d16f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx r8d, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, r8d
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x20
jl 0x1402d1700
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret
Function at 0x1402da0c0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1403c0f00]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa6e], dil
je 0x1402da2df
cmp byte [rdx + 0x1c], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x1c]
je 0x1402da2d7
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1402da2d7
lea r8, [rsp + 0x70]
mov rdx, rsi
lea ecx, [rdi + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1402da2d7
cmp byte [rsi], dil
lea rdx, str.Host__s:_d_was_resolved.
mov r9d, dword [r14 + 0x18]
mov rcx, rbp
mov qword [rsp + 0x100], rbx
mov rbx, qword [r14]
mov qword [rsp + 0xc0], r15
lea r15, [0x140352c54]
mov r8, r15
cmovne r8, rsi
call fcn.1402c5d00
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.1402af100
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1402af100
test rbx, rbx
je 0x1402da244
lea r14d, [rdi + 0x20]
nop dword [rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x1402da1b1
cmp ecx, 2
jne 0x1402da237
xor eax, eax
mov byte [rsp + 0x80], 0
cmp ecx, 2
lea rsi, [rsp + 0x30]
cmovne rax, r14
add rsi, rax
cmp ecx, 2
je 0x1402da1de
cmp ecx, 0x17
jne 0x1402da1f9
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x1402da1e6
mov rdx, qword [rbx + 0x20]
add rdx, 4
mov r9d, 0x2e
lea r8, [rsp + 0x80]
call sub.WS2_32.dll_inet_ntop
mov rcx, rsi
call fcn.1402af120
test rax, rax
je 0x1402da21d
mov r8d, 2
lea rdx, [0x14034315c]
mov rcx, rsi
call fcn.1402af0c0
mov edi, eax
test edi, edi
jne 0x1402da25f
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.1402af060
mov edi, eax
test eax, eax
jne 0x1402da25f
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1402da1a0
lea rcx, [rsp + 0x50]
call fcn.1402af120
test rax, rax
je 0x1402da270
lea rcx, [rsp + 0x50]
call fcn.1400fa510
jmp 0x1402da273
lea rdx, str.too_many_IP__cannot_show
mov rcx, rbp
call fcn.1402c5d00
jmp 0x1402da2b3
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.1402c5d00
lea rcx, [rsp + 0x30]
call fcn.1402af120
test rax, rax
je 0x1402da2a1
lea rcx, [rsp + 0x30]
call fcn.1400fa510
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.1402c5d00
lea rcx, [rsp + 0x30]
call fcn.1402af0d0
lea rcx, [rsp + 0x50]
call fcn.1402af0d0
mov r15, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140331c20
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
Function at 0x1402e3670
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1402d8300
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1402e29b0
mov rcx, rdi
mov rsi, rax
call fcn.1402e29b0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1402e3720
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1402d8300
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1402d8390
cmp rax, 0x3e8
ja 0x1402e3751
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1402e36d0
test rsi, rsi
je 0x1402e372d
mov rcx, rsi
call fcn.14033303a
test rbx, rbx
je 0x1402e373a
mov rcx, rbx
call fcn.14033303a
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1402e375e
mov rcx, rsi
call fcn.14033303a
test rbx, rbx
je 0x1402e376b
mov rcx, rbx
call fcn.14033303a
mov eax, 1
jmp 0x1402e373c
Function at 0x1402e3d00
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1402e3e9e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1402e3e7e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1402e3d6e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1402e3d60
inc rbx
jmp 0x1402e3d70
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1402e3d7d
lea ebp, [rax + 0xe]
jmp 0x1402e3d89
cmp eax, 0x17
jne 0x1402e3e21
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1402e3e21
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1402e3e21
cmp rax, rbp
jb 0x1402e3e21
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [str.403_]
mov r14, rax
test rax, rax
je 0x1402e3e30
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x1402e3e0e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1402e3e1e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1402e3d50
jmp 0x1402e3e36
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1402e3e50
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1402e3e79
test rdi, rdi
je 0x1402e3e75
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [str.:03_]
mov rdi, rbx
test rbx, rbx
jne 0x1402e3e60
xor edi, edi
jmp 0x1402e3e8d
test rdi, rdi
jne 0x1402e3e8d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x1402e4300
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
test rax, rax
je 0x1402e4336
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret