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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003c36d
xor eax, eax
jmp 0x14003c4c2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14003c398
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14003c398
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 0x14003c4c2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003c4b5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003c3db
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 0x14003c406
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 0x14003c4ba
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 0x14003c475
sub eax, 1
je 0x14003c475
cmp eax, 2
jne 0x14003c4b5
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 0x14003c4ba
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003c4a3
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 0x14003c4b5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14003c4ba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005a2a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14003c870
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003c943
cmp byte [rcx + 0x71], 0
je 0x14003c943
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003c93f
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 0x14003c904
sub eax, 1
je 0x14003c908
cmp eax, 2
jne 0x14003c93f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005a2a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003c936
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 0x14003c93f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003c8ec
xor al, al
jmp 0x14003c8ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005a2a0
add rsp, 0x60
pop rbx
ret
Function at 0x1400411b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r12, edx
mov r15d, r9d
mov rbp, r8
mov r14, rcx
test rcx, rcx
je 0x140041310
test r8, r8
je 0x140041310
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140041310
mov qword [rsp + 0x40], rbx
mov ecx, 0x100
mov qword [rsp + 0x48], rsi
call fcn.14005a960
xor ecx, ecx
mov r10, rax
mov edx, ecx
mov r8, rax
nop
mov byte [r8], dl
lea r8, [r8 + 1]
inc edx
cmp edx, 0x100
jl 0x140041210
mov r9d, ecx
mov r11d, ecx
mov rbx, r10
nop word [rax + rax]
movzx esi, byte [rbx]
mov eax, r11d
cdq
idiv r15d
movsxd rax, edx
movzx edx, byte [rax + rbp]
add r9d, edx
add r9d, esi
and r9d, 0x800000ff
jge 0x14004125d
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
inc r11d
movzx eax, byte [rdx + r10]
mov byte [rbx], al
inc rbx
mov byte [rdx + r10], sil
cmp r11d, 0x100
jl 0x140041230
mov rsi, qword [rsp + 0x48]
mov r8d, ecx
mov rbx, r12
test r12d, r12d
jle 0x1400412f4
sub r14, rdi
nop dword [rax]
inc ecx
and ecx, 0x800000ff
jge 0x1400412a4
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r9, ecx
movzx r11d, byte [r9 + r10]
add r8d, r11d
and r8d, 0x800000ff
jge 0x1400412c5
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rdx, r8d
movzx eax, byte [rdx + r10]
mov byte [r9 + r10], al
mov byte [rdx + r10], r11b
movzx eax, byte [r9 + r10]
add eax, r11d
movzx edx, al
movzx eax, byte [rdx + r10]
xor al, byte [r14 + rdi]
mov byte [rdi], al
inc rdi
sub rbx, 1
jne 0x140041290
mov rax, qword [rsp + 0x68]
mov rcx, r10
mov dword [rax], r12d
call fcn.14005a61c
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
jmp 0x140041312
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140043300
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rbx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], 0x67452301
mov dword [rsp + 0x4c], 0xefcdab89
mov dword [rsp + 0x50], 0x98badcfe
mov dword [rsp + 0x54], 0x10325476
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140043369
mov rdx, qword [r8]
mov r8d, dword [r8 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400404f0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.1400405d0
mov qword [rsi], rbp
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], send
mov byte [rsi], 0
mov dword [rsp + 0x20], 1
mov rdi, rbp
nop word [rax + rax]
movzx r8d, byte [rsp + rdi + 0xa0]
lea rdx, str._02x
lea rcx, [rsp + 0x38]
call fcn.140040010
lea rax, [rsp + 0x38]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400433d6
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14004f580
inc rdi
cmp rdi, 0x10
jl 0x1400433b0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004342c
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140043427
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043461
mov rcx, r8
call fcn.14005a61c
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rax, rsi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14005a2a0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140044e20
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x140047250
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x170
movaps xmmword [rsp + 0x160], xmm6
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], send
mov byte [rsp + 0x20], bl
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x1400472b1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14003cd20
nop
mov r8d, recv
lea rdx, str.WindowEx.ini
lea rcx, [rsp + 0x20]
call fcn.14004f580
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae r9, qword [rsp + 0x20]
xor r8d, r8d
lea rdx, str.Wind
lea rcx, str.Unicode
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
movsxd rsi, eax
cmp rsi, 0x317939
ja 0x14004734f
mov rbx, rsi
mov edi, 0x1687f0
movsd xmm6, qword [0x1402793b0]
nop word [rax + rax]
imul rbx, rsi
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
movaps xmm1, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_fmod
cvttsd2si rbx, xmm0
sub rdi, 1
jne 0x140047330
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14004738f
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004738a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004738a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14005a2a0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x14004f7f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebp, edx
mov r12, rcx
xor edx, edx
lea rcx, [0x140284da0]
call fcn.14005b4ec
mov r13d, 1
mov rdi, rax
mov r14d, r13d
test rax, rax
je 0x14004fa29
mov r15d, ebp
shr r15d, 4
lea ecx, [r15 + 1]
movzx eax, cx
mov qword [rsp + 0x80], rax
nop word [rax + rax]
xor r9d, r9d
mov r8, rax
mov rcx, rdi
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rsi, rax
test rax, rax
je 0x14004f8c5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004f8c5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14004f8c5
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, ebp
add rdx, rbx
and ecx, 0xf
jbe 0x14004f8ba
cmp rbx, rdx
jae 0x14004f8c5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add ecx, 0xffffffff
jne 0x14004f8a5
cmp rbx, rdx
jae 0x14004f8c5
cmp word [rbx], 0
jne 0x14004f8f0
mov edx, r14d
lea rcx, [0x140284da0]
inc r14d
call fcn.14005b4ec
mov rdi, rax
test rax, rax
je 0x14004fa29
mov rax, qword [rsp + 0x80]
jmp 0x14004f850
test rdi, rdi
je 0x14004fa29
inc r15w
mov r8d, 6
movzx edx, r15w
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14004fa20
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004fa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14004fa20
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and ebp, 0xf
jbe 0x14004f979
nop dword [rax]
cmp rbx, rcx
jae 0x14004fa20
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add ebp, 0xffffffff
jne 0x14004f960
cmp rbx, rcx
jae 0x14004fa20
movzx eax, word [rbx]
test ax, ax
je 0x14004fa20
xor edi, edi
lea r8, [rbx + 2]
mov qword [rsp + 0x38], rdi
mov r9d, eax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov dword [rsp + 0x28], edi
lea ecx, [rdi + 3]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
js 0x14004fa4b
mov rax, qword [r12]
mov edx, r13d
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, esi
or edx, ecx
jge 0x14004f9e1
mov edx, esi
mov rcx, r12
call fcn.14004fa60
mov rax, qword [r12]
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rax, qword [r12]
cmp esi, dword [rax - 0xc]
jg 0x14004fa4b
mov dword [rax - 0x10], esi
mov rax, qword [r12]
mov byte [rsi + rax], dil
mov eax, r13d
jmp 0x14004fa2b
xor edi, edi
mov r13d, edi
mov eax, edi
jmp 0x14004fa2b
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80070057
call fcn.1400435e0
int3
Function at 0x140051150
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14005126c
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14005126c
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x1400511c8
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x140051279
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14005125a
mov r8d, eax
cmp r8, rbp
jae 0x14005125a
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x14005125a
lea rax, [r8 + rsi]
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r9 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x140051232
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x14005124e
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.1400518a0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x1400511e1
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x140051279
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005a2a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400592c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rax, dword [rdx + 0x10]
mov rbx, rdx
test eax, eax
jle 0x140059334
mov rdx, qword [rdx + 0x18]
mov r8, rax
xor eax, eax
nop
mov rcx, rbx
cmp rdx, 0x10
jb 0x1400592ec
mov rcx, qword [rbx]
cmp byte [rax + rcx], 0x61
jge 0x140059304
mov rcx, rbx
cmp rdx, 0x10
jb 0x1400592fe
mov rcx, qword [rbx]
cmp byte [rax + rcx], 0x41
jl 0x14005932c
mov rcx, rbx
cmp rdx, 0x10
jb 0x140059310
mov rcx, qword [rbx]
cmp byte [rax + rcx], 0x7a
jle 0x1400593a3
mov rcx, rbx
cmp rdx, 0x10
jb 0x140059326
mov rcx, qword [rbx]
cmp byte [rax + rcx], 0x5a
jle 0x1400593a3
inc rax
cmp rax, r8
jl 0x1400592e0
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x140059341
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rdx, qword [rbx + 0x18]
mov edi, eax
cmp rdx, 0x10
jb 0x140059383
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14005937e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400593ff
mov rcx, r8
call fcn.14005a61c
mov eax, edi
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
cmp rdx, 0x10
jb 0x1400593af
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdx, qword [rbx + 0x18]
test rax, rax
je 0x1400593c9
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov edi, dword [rcx]
jmp 0x14005934d
cmp rdx, 0x10
jb 0x1400593fb
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400593f6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400593ff
mov rcx, r8
call fcn.14005a61c
xor eax, eax
jmp 0x140059385
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140059fd0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
mov r14, rcx
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov ebx, ebp
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14005a05e
nop dword [rax]
test rbx, rbx
je 0x14005a026
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14005a010
test eax, eax
jns 0x14005a07f
test rbx, rbx
je 0x14005a084
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14005a176
test rbx, rbx
jne 0x14005a08b
xor eax, eax
jmp 0x14005a176
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x14005a156
mov esi, edi
lea rdx, [rbx + 0x30]
imul rax, rsi, 0x128
mov qword [rsp + 0x28], rbp
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], send
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], bpl
jne 0x14005a0d4
lea rcx, [rsp + 0x28]
call fcn.14003cd20
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x14005a0f4
mov rdx, qword [r14]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14005a18c
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14005a14c
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a147
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a1dd
call fcn.14005a61c
inc edi
cmp edi, dword [rbx]
jb 0x14005a0a2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005a2a0
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
imul rax, rsi, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14005a1e9
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a1e4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a1e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005a61c
mov rax, rdi
jmp 0x14005a169
Function at 0x1408e2f10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1408e2f1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1408e2f2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1408e2f15
lea eax, [rcx + 1]
jmp 0x1408e2f3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1408e2f4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1408e2f34
sub eax, 3
jb 0x1408e2f6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1408e2fbd
sar eax, 1
movsxd rbp, eax
jb 0x1408e2fa4
jmp 0x1408e2f7c
add ebx, ebx
jne 0x1408e2f7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408e2fa4
inc ecx
add ebx, ebx
jne 0x1408e2f8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408e2fa4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1408e2f9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1408e2f8c
add ecx, 2
jmp 0x1408e2fa9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1408e2ed2
jmp 0x1408e2f1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x59200
mov dl, sendto
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1408e3009
cmp rsi, rcx
jae 0x1408e3011
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1408e2ff0
cmp al, 0x8f
ja 0x1408e2ff0
cmp byte [rsi - 2], 0xf
je 0x1408e2ff6
sub al, 0xe8
cmp al, 1
ja 0x1408e2fda
cmp rsi, rcx
jae 0x1408e3011
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1408e2fe0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1408e3011
lodsb al, byte [rsi]
jmp 0x1408e2ff0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8de000]
mov eax, dword [rdi]
or eax, eax
je 0x1408e307a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8e31e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1408e301e
jns 0x1408e3053
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1408e305d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1408e3074
mov qword [rbx], rax
add rbx, 8
jmp 0x1408e303e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1408e30b4
cmp al, 0xef
ja 0x1408e30a6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1408e3086
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1408e3095
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1408e3108
sub rsp, 0xffffffffffffff80
jmp 0x140058fb8