joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff668c3f610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x7ff668c3f647
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x7ff668c3f668
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x7ff668c3f66a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x7ff668c3f6c3
test ecx, ecx
jle 0x7ff668c3f6a3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.vcruntime140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x7ff668c3f6c3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x7ff668c3f6c3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x7ff668c3f6f0
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 0x7ff668c3f712
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x7ff668c3f728
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 0x7ff668c3f744
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x7ff668c3f746
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x7ff668c3f780
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x7ff668c3f827
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x7ff668c3f7bb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x7ff668c3f801
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x7ff668c3f840
cmp rbx, rax
ja 0x7ff668c3f7d0
mov r8, rdi
test rdi, rdi
je 0x7ff668c3f827
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x7ff668c3f82a
Function at 0x7ff668c3fc40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x7ff668c3fc6d
xor eax, eax
jmp 0x7ff668c3fdc2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x7ff668c3fc98
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x7ff668c3fc98
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], dil
mov eax, edi
jmp 0x7ff668c3fdc2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x7ff668c3fdb5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x7ff668c3fcdb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x7ff668c3fd06
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.ucrtbase.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x7ff668c3fdba
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 0x7ff668c3fd75
sub eax, 1
je 0x7ff668c3fd75
cmp eax, 2
jne 0x7ff668c3fdb5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.ucrtbase.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x7ff668c3fdba
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x7ff668c3fda3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rsi, rax
jne 0x7ff668c3fdb5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x7ff668c3fdba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.7ff668cb8ee0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x7ff668c415f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff668c416c3
cmp byte [rcx + 0x71], 0
je 0x7ff668c416c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff668c416bf
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 0x7ff668c41684
sub eax, 1
je 0x7ff668c41688
cmp eax, 2
jne 0x7ff668c416bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff668cb8ee0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff668c416b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff668c416bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff668c4166c
xor al, al
jmp 0x7ff668c4166c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff668cb8ee0
add rsp, 0x60
pop rbx
ret

Function at 0x7ff668c4bb80
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword gs:[0x60]
mov rax, qword [r14 + 0x18]
add rax, 0x20
mov rbp, qword [rax]
cmp rbp, rax
je 0x7ff668c4bc30
cmp qword [rbp + 0x40], 0
je 0x7ff668c4bc1f
mov rax, qword [rbp + 0x20]
xor ebx, ebx
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
movzx eax, word [rsi + 0x14]
lea rdi, [rsi + 0x24]
add rdi, rax
mov ecx, dword [rdi]
lea rdx, [rsp + 0x20]
add rcx, qword [rbp + 0x20]
mov r8d, 0x30
call qword [sym.imp.kernel32.dll_VirtualQuery]
test rax, rax
je 0x7ff668c4bc11
cmp dword [rsp + 0x40], 0x1000
jne 0x7ff668c4bc11
test dword [rsp + 0x44], 0x100
jne 0x7ff668c4bc5a
movzx eax, word [rsi + 6]
inc ebx
add rdi, 0x28
cmp ebx, eax
jle 0x7ff668c4bbe1
mov rax, qword [r14 + 0x18]
mov rbp, qword [rbp]
add rax, 0x20
cmp rbp, rax
jne 0x7ff668c4bbc2
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.7ff668cb8ee0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov al, 1
jmp 0x7ff668c4bc32
Function at 0x7ff668c4bd10
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x7ff668c4bda7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x7ff668c4bda7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x7ff668c4bda2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x7ff668c4bd80
cmp r8d, 0xe463da3c
je 0x7ff668c4bdac
test r9d, r9d
jne 0x7ff668c4bd60
mov rax, qword [rax]
jmp 0x7ff668c4bd30
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
movabs rcx, 0xe202707a703f2684
mov qword [rsp + 0x20], rcx
add rax, r10
movabs rcx, 0x9da3d80feed68bd0
mov qword [rsp + 0x28], rcx
movabs rcx, 0xcc6e1c3e155644d7
movdqa xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rcx
movabs rcx, 0x9da3d80feebae7b4
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x20]
pxor xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x20], xmm0
call rax
mov rbx, qword [rsp + 0x50]
test rax, rax
setne al
add rsp, 0x40
pop rdi
ret
Function at 0x7ff668c4be80
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x7ff668c4bf17
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x7ff668c4bf17
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x7ff668c4bf12
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x7ff668c4bef0
cmp r8d, 0xb0327e93
je 0x7ff668c4bf1c
test r9d, r9d
jne 0x7ff668c4bed0
mov rax, qword [rax]
jmp 0x7ff668c4bea0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 0x1000
add rax, r10
call rax
mov rbx, qword [rsp + 0x30]
test eax, eax
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x7ff668c4c110
Capabilities:
Check for debugger via api
Execute command

Disassembly:
sub rsp, 0x38
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
je 0x7ff668c4c154
lea rcx, [0x7ff668cd868c]
call qword [sym.imp.ucrtbase.dll_system]
mov rcx, qword [0x7ff668cf3ac8]
test rcx, rcx
je 0x7ff668c4c18c
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x7ff668c4c199
cmp dword [rsp + 0x20], 0
je 0x7ff668c4c199
lea rcx, [0x7ff668cd868c]
call qword [sym.imp.ucrtbase.dll_system]
mov rcx, qword [0x7ff668cf3ac8]
test rcx, rcx
jne 0x7ff668c4c193
call qword [sym.imp.msvcp140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.7ff668cb8ee0
add rsp, 0x38
ret
Function at 0x7ff668c4d150
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x7ff668c4d1b1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x7ff668c4d170
mov ecx, dword [r10]
jmp 0x7ff668c4d29a
cmp ecx, 0x4e0
jb 0x7ff668c4d29a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x7ff668c4d1d0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x7ff668c4d220
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x7ff668c516f0
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov eax, edx
mov dword [rbp - 0x61], 0x67452301
and eax, 0x1fffffff
mov dword [rbp - 0x5d], 0xefcdab89
mov dword [rbp - 0x69], eax
mov rdi, r8
mov eax, edx
mov dword [rbp - 0x59], 0x98badcfe
shr eax, 0x1d
mov rbx, rdx
mov dword [rbp - 0x55], 0x10325476
mov dword [rbp - 0x65], eax
cmp edx, 0x40
jb 0x7ff668c51760
mov r8d, ebx
mov rdx, rcx
and r8d, 0xffffffc0
lea rcx, [rbp - 0x69]
call fcn.7ff668c50c20
mov rcx, rax
and ebx, 0x3f
mov rdx, rcx
mov r8d, ebx
lea rcx, [rbp - 0x51]
call sub.vcruntime140.dll_memcpy
mov ecx, dword [rbp - 0x69]
mov eax, 0x40
and ecx, 0x3f
mov byte [rbp + rcx - 0x51], 0x80
inc ecx
sub eax, ecx
cmp eax, 8
jae 0x7ff668c517b5
mov r8d, eax
xor edx, edx
mov eax, ecx
lea rcx, [rbp - 0x51]
add rcx, rax
call sub.vcruntime140.dll_memset
mov r8d, 0x40
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x69]
call fcn.7ff668c50c20
xor ecx, ecx
mov eax, 0x40
add eax, 0xfffffff8
xor edx, edx
mov r8d, eax
mov eax, ecx
lea rcx, [rbp - 0x51]
add rcx, rax
call sub.vcruntime140.dll_memset
mov eax, dword [rbp - 0x69]
lea rdx, [rbp - 0x51]
mov r8d, 0x40
lea ecx, [rax*8]
movzx eax, cl
mov dword [rbp - 0x69], ecx
mov eax, ecx
mov byte [rbp - 0x19], cl
shr eax, 8
mov byte [rbp - 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x65]
shr ecx, 0x18
mov byte [rbp - 0x15], al
mov byte [rbp - 0x16], cl
mov ecx, dword [rbp - 0x65]
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x14], al
mov eax, ecx
shr ecx, 0x18
mov byte [rbp - 0x12], cl
lea rcx, [rbp - 0x69]
shr eax, 0x10
mov byte [rbp - 0x13], al
call fcn.7ff668c50c20
mov ecx, dword [rbp - 0x61]
movzx eax, byte [rbp - 0x61]
mov byte [rdi], al
mov eax, ecx
shr eax, 8
mov byte [rdi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rdi + 2], al
movzx eax, byte [rbp - 0x5d]
mov byte [rdi + 4], al
shr ecx, 0x18
mov byte [rdi + 3], cl
mov ecx, dword [rbp - 0x5d]
mov eax, ecx
shr eax, 8
mov byte [rdi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [rdi + 6], al
movzx eax, byte [rbp - 0x59]
mov byte [rdi + 8], al
shr ecx, 0x18
mov byte [rdi + 7], cl
mov ecx, dword [rbp - 0x59]
mov eax, ecx
shr eax, 8
mov byte [rdi + 9], al
mov eax, ecx
shr eax, 0x10
mov byte [rdi + 0xa], al
movzx eax, byte [rbp - 0x55]
mov byte [rdi + 0xc], al
shr ecx, 0x18
mov byte [rdi + 0xb], cl
mov ecx, dword [rbp - 0x55]
mov eax, ecx
shr eax, 8
mov byte [rdi + 0xd], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rdi + 0xf], cl
mov byte [rdi + 0xe], al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.7ff668cb8ee0
add rsp, 0xd0
pop rdi
pop rbx
pop rbp
ret
Function at 0x7ff668c53710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9d, r8d
lea rax, [rsp + 0x30]
mov r8d, edx
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x88]
mov rbx, rcx
mov rcx, qword [rsp + 0x80]
call fcn.7ff668c53130
mov rdi, rax
test rax, rax
je 0x7ff668c5378d
lea r8, [0x7ff668cd98b0]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ucrtbase.dll_fopen_s]
mov rbx, qword [rsp + 0x38]
xor ecx, ecx
test eax, eax
cmovne rbx, rcx
mov rcx, rdi
mov qword [rsp + 0x38], rbx
test rbx, rbx
jne 0x7ff668c53791
call qword [sym.imp.ucrtbase.dll_free]
xor eax, eax
jmp 0x7ff668c537bb
movsxd r8, dword [rsp + 0x30]
mov r9, rbx
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fclose]
mov rcx, rdi
call qword [sym.imp.ucrtbase.dll_free]
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7ff668cb8ee0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x7ff668c61a70
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x7ff668c61b52
call fcn.7ff668c794a0
test al, al
jne 0x7ff668c61b52
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x7ff668c61aa2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.7ff668c846e0
test rax, rax
je 0x7ff668c61ae7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.7ff668c846e0
mov rsi, rax
test rax, rax
je 0x7ff668c61ae7
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 0x7ff668c61b1b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.7ff668c741b0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x7ff668c61b00
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 0x7ff668c6f220
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 + 0xa97], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x7ff668c6f2e9
cmp qword [rcx + 0x260], 0
je 0x7ff668c6f29e
mov qword [rsp + 0x40], rbx
call fcn.7ff668c5c170
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.7ff668c5c4d0
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.7ff668c5c4d0
mov rbx, qword [rsp + 0x40]
jmp 0x7ff668c6f2e9
mov ecx, esi
test edx, edx
je 0x7ff668c6f2ae
sub ecx, 1
je 0x7ff668c6f2ae
cmp ecx, 1
jne 0x7ff668c6f2e9
mov r9, qword [rdi + 0x1d0]
lea rax, [0x7ff668cc0b70]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.ucrtbase.dll_fwrite
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.ucrtbase.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 0x7ff668c71b70
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.ucrtbase.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x7ff668c7a2b0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x7ff668c7a2c5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.7ff668c79ce0

Function at 0x7ff668c7a5f0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa97], dil
je 0x7ff668c7a80f
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x7ff668c7a807
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rdi + 2]
call qword [sym.imp.ws2_32.dll_inet_pton]
test eax, eax
jg 0x7ff668c7a807
lea r8, [rsp + 0x70]
mov rdx, rsi
lea ecx, [rdi + 0x17]
call qword [sym.imp.ws2_32.dll_inet_pton]
test eax, eax
jg 0x7ff668c7a807
cmp byte [rsi], dil
lea rdx, str.Host__s:_d_was_resolved.
mov r9d, dword [r14 + 0x14]
mov rcx, rbp
mov qword [rsp + 0x100], rbx
mov rbx, qword [r14]
mov qword [rsp + 0xc0], r15
lea r15, str._none_
mov r8, r15
cmovne r8, rsi
call fcn.7ff668c6f3f0
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.7ff668c62a10
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.7ff668c62a10
test rbx, rbx
je 0x7ff668c7a774
lea r14d, [rdi + 0x20]
nop dword [rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x7ff668c7a6e1
cmp ecx, 2
jne 0x7ff668c7a767
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 0x7ff668c7a70e
cmp ecx, 0x17
jne 0x7ff668c7a729
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x7ff668c7a716
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.7ff668c62a30
test rax, rax
je 0x7ff668c7a74d
mov r8d, 2
lea rdx, [0x7ff668cd23b4]
mov rcx, rsi
call fcn.7ff668c629d0
mov edi, eax
test edi, edi
jne 0x7ff668c7a78f
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.7ff668c62980
mov edi, eax
test eax, eax
jne 0x7ff668c7a78f
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x7ff668c7a6d0
lea rcx, [rsp + 0x50]
call fcn.7ff668c62a30
test rax, rax
je 0x7ff668c7a7a0
lea rcx, [rsp + 0x50]
call fcn.7ff668c62a40
jmp 0x7ff668c7a7a3
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.7ff668c6f3f0
jmp 0x7ff668c7a7e3
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.7ff668c6f3f0
lea rcx, [rsp + 0x30]
call fcn.7ff668c62a30
test rax, rax
je 0x7ff668c7a7d1
lea rcx, [rsp + 0x30]
call fcn.7ff668c62a40
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.7ff668c6f3f0
lea rcx, [rsp + 0x30]
call fcn.7ff668c629e0
lea rcx, [rsp + 0x50]
call fcn.7ff668c629e0
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.7ff668cb8ee0
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret