joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401339a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea r9, [rdx + 2]
mov rdi, rdx
mov rbx, rcx
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mov rsi, r8
mul r9
shr rdx, 1
shl rdx, 2
mov rcx, rdx
mov qword [r8], rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r10, rax
test rax, rax
je 0x140133af0
xor eax, eax
lea r11, [0x140000000]
test rdi, rdi
je 0x140133ab2
mov r9, r10
movsxd rcx, eax
cmp rcx, rdi
jae 0x140133a17
movzx edx, byte [rbx]
inc eax
inc rbx
jmp 0x140133a19
xor edx, edx
movsxd rcx, eax
cmp rcx, rdi
jae 0x140133a2c
movzx r8d, byte [rbx]
inc eax
inc rbx
jmp 0x140133a2f
xor r8d, r8d
movsxd rcx, eax
cmp rcx, rdi
jae 0x140133a41
movzx ecx, byte [rbx]
inc eax
inc rbx
jmp 0x140133a43
xor ecx, ecx
shl rdx, 8
add rdx, r8
shl rdx, 8
add rdx, rcx
mov rcx, rdx
shr rcx, 0x12
movzx ecx, byte [rcx + r11 + 0x492120]
mov byte [r9], cl
mov rcx, rdx
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r11 + 0x492120]
mov byte [r9 + 1], cl
mov rcx, rdx
shr rcx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [rcx + r11 + 0x492120]
mov byte [r9 + 2], cl
movzx ecx, byte [rdx + r11 + 0x492120]
mov byte [r9 + 3], cl
add r9, 4
movsxd rcx, eax
cmp rcx, rdi
jb 0x140133a05
mov rax, rbp
mul rdi
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rdi, rax
movsxd rdx, dword [r11 + rdi*4 + 0x492110]
test rdx, rdx
jle 0x140133aed
mov rcx, qword [rsi]
dec rcx
add rcx, r10
nop dword [rax + rax]
mov byte [rcx], 0x3d
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140133ae0
mov rax, r10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140138d70
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1060
call fcn.1403d0140
sub rsp, rax
mov r13, r8
mov r14, rdx
mov rax, rcx
test r8, r8
je 0x140138e8a
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
mov r9d, 0x18
lea rcx, [rsp + 0x10b0]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov rcx, rax
mov edx, 0x30394004
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x48], 0x1000
mov dword [rsp + 0x10b0], 0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140138e8a
mov rdi, 0xffffffffffffffff
mov rsi, rdi
nop word [rax + rax]
inc rsi
cmp byte [r14 + rsi], 0
jne 0x140138e20
movsxd rax, dword [rsp + 0x9c]
lea rcx, [rsp + 0x60]
add rcx, rax
xor ebp, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140138e8a
lea rcx, [rbp*4]
mov r8, rsi
add rcx, rbp
mov rdx, r14
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140138e83
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x140138e75
cmp rsi, rax
je 0x140138ea7
inc ebp
cmp ebp, r15d
jb 0x140138e51
xor eax, eax
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140138e8a
mov ebx, dword [rbx + 8]
lea r14, [rsp + 0x60]
add r14, rax
je 0x140138e8a
test ebx, ebx
je 0x140138e8a
lea rax, [rsp + 0x60]
mov esi, ebx
sub r14, rax
add r14, r13
je 0x140138e8a
cmp rbx, 0x40000000
ja 0x140138e8a
mov ecx, ebx
call fcn.1401c8270
mov rcx, qword [rsp + 0x10a0]
lea r8, [rsp + 0x40]
xor r15d, r15d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], r15
mov rbp, rax
lea rax, [rsp + 0x10b0]
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x30], rax
mov edx, 0x30394004
mov dword [rsp + 0x28], r15d
lea r9d, [r15 + 0x18]
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x10b0], r15d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140138faf
mov r10, qword [rsp + 0x10c0]
inc rdi
cmp byte [r10 + rdi], r15b
jne 0x140138f43
mov r9, r15
sub rsi, rdi
je 0x140138fa7
mov rax, qword [rsp + 0x10b8]
mov rbx, rbp
movzx r11d, byte [r10]
sub rbx, rax
mov rdx, r10
test r11b, r11b
je 0x140138f92
movzx ecx, r11b
lea r8, [rbx + r9]
cmp cl, 0x78
jne 0x140138f84
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
jne 0x140138f97
movzx ecx, byte [rdx + 1]
inc rdx
inc rax
test cl, cl
jne 0x140138f76
cmp byte [rdx], r15b
je 0x140138fb7
mov rax, qword [rsp + 0x10b8]
inc r9
cmp r9, rsi
jb 0x140138f66
mov rcx, rbp
call fcn.1401c7f18
mov rax, r15
jmp 0x140138e8c
lea rbx, [r9 + rbp]
test rbx, rbx
je 0x140138fa7
mov rcx, rbp
call fcn.1401c7f18
sub rbx, rbp
lea rax, [rbx + r14]
jmp 0x140138e8c
Function at 0x140139c00
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 0x140139c28
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 0x140139c4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140139c50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140139ca9
test ecx, ecx
jle 0x140139c89
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 0x140139ca9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140139ca9
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 0x140139cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140139d01
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 0x140139d1f
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140139d3b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140139d3d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140139d79
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140139e0e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140139db4
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 0x140139dee
nop dword [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 0x140139e0e
cmp rbx, rax
ja 0x140139dc0
test rbx, rbx
je 0x140139e0e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14013a250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14013a274
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14013a2ab
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x14013a2ab
mov rcx, rbx
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
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14013a3dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14013a2ee
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 0x14013a319
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
cmove edi, ecx
mov eax, edi
jmp 0x14013a3e1
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x14013a38e
sub eax, 1
je 0x14013a38e
cmp eax, 2
jne 0x14013a3dc
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x14013a3e1
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14013a3bf
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14013a3dc
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14013a3e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14013a800
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14013a8c9
cmp byte [rcx + 0x71], 0
je 0x14013a8c9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14013a8bc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14013a878
sub eax, 1
je 0x14013a87c
cmp eax, 2
jne 0x14013a8bc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14013a8aa
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14013a8bc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14013e4b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov eax, 0x5a4d
mov rsi, rdx
mov rdi, rcx
cmp word [rdx], ax
jne 0x14013e5ce
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14013e5ce
mov ecx, dword [rax + rsi + 0xb0]
xor edx, edx
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
test ecx, ecx
jne 0x14013e513
mov qword [rdi], rdx
mov rax, rdi
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rbx
lea rbx, [rsi + rcx]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x68], rbp
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
cmp rbx, rbp
jae 0x14013e5a6
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x14013e5a6
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x38], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x40], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x48], eax
cmp rcx, rdx
je 0x14013e57f
movups xmm0, xmmword [rsp + 0x38]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rcx], xmm0
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x28], rcx
jmp 0x14013e59b
mov rdx, rcx
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14013ec10
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14013e535
mov rax, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rdi], rax
mov rax, rdi
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rsi, qword [rsp + 0x70]
xor edx, edx
mov qword [rcx], rdx
mov rax, rdi
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
add rsp, 0x50
pop rdi
ret
Function at 0x14013f9b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rbx, rcx
lea rcx, [0x140492738]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14013fbb4
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0xa0], rdi
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x14013fbc9
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x14013fa16
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x37]
mov qword [rsp + 0x20], reloc.WS2_32.dll_gethostbyname
call fcn.14013cae0
cmp qword [rbp + 0x4f], 7
lea rdx, [rbp + 0x37]
lea rcx, [rbp + 7]
cmova rdx, qword [rbp + 0x37]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x14013fbc9
cmp qword [rbx + 0x18], 7
jbe 0x14013fa6c
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
lea r9, str.SYSTEMCurrentControlSetServices_
mov qword [rsp + 0x28], rbx
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x20], 0x22
call fcn.14013cae0
cmp qword [rbp + 0x2f], 7
lea rdx, [rbp + 0x17]
lea r8, [rbp + 0x6f]
mov rcx, 0xffffffff80000002
cmova rdx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14013faba
cmp eax, 2
sete bl
jmp 0x14013fb17
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 7]
call rax
lea rdx, [rbp + 0x17]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x14013fafd
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor bl, bl
jmp 0x14013fb17
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14013fb15
xor bl, bl
jmp 0x14013fb17
mov bl, 1
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14013fb53
mov rcx, qword [rbp + 0x17]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013fb4e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013fb9d
call fcn.1401c7f18
mov rdx, qword [rbp + 0x4f]
xor eax, eax
movdqa xmm0, xmmword [0x140495310]
mov word [rbp + 0x17], ax
movdqu xmmword [rbp + 0x27], xmm0
cmp rdx, 7
jbe 0x14013fba9
mov rcx, qword [rbp + 0x37]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013fba4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013fba4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401c7f18
mov rdi, qword [rsp + 0xa0]
movzx eax, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140133cb0
int3
Function at 0x14013fbd0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x40
xor edx, edx
lea r9, [rsp + 0x68]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x68], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14013fc4f
test rbx, rbx
je 0x14013fc17
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x68]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
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 0x14013fc01
test eax, eax
jns 0x14013fc74
test rbx, rbx
je 0x14013fc79
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
test rbx, rbx
jne 0x14013fc84
xor eax, eax
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14013fd53
nop word [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x20], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x30], r14
add rdx, rcx
mov qword [rsp + 0x38], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14013fcd5
lea rcx, [rsp + 0x20]
call fcn.14013c7a0
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14013fcf5
mov rdx, qword [rsi]
cmp qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14013fd79
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14013fd49
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013fd44
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013fdc2
call fcn.1401c7f18
inc edi
cmp edi, dword [rbx]
jb 0x14013fca0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14013fdce
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013fdc9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013fdc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401c7f18
mov rax, rdi
jmp 0x14013fd66
Function at 0x1401402d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
mov eax, 0x13d0
call fcn.1403d0140
sub rsp, rax
xor edi, edi
mov rbx, rcx
mov qword [rsp + 0x28], rdi
lea ecx, [rdi + 0x40]
call fcn.1401c7ed4
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov rsi, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], reloc.WS2_32.dll_gethostbyname
movups xmmword [rax], xmm0
mov qword [rsp + 0x38], 0x3f
movups xmm1, xmmword [0x1404928c8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1404928d8]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [0x1404928e8]
mov dword [rax + 0x30], ecx
mov byte [rax + 0x34], dil
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13c4], 0xffffffff
lea edx, [rdi + 1]
mov dword [rsp + 0x44], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x140140360
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x270
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
lea rax, [rsp + 0x40]
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
mov edi, 0x20
mov qword [rsp + 0x13e8], rax
nop
lea rcx, [rsp + 0x13e8]
call fcn.14014ad30
mov eax, eax
imul rax, rax, 0x34
cmp eax, 0x2f
ja 0x1401403e8
nop dword [rax + rax]
lea rcx, [rsp + 0x13e8]
call fcn.14014ad30
mov eax, eax
imul rax, rax, 0x34
cmp eax, 0x30
jb 0x1401403d0
mov rdx, qword [rbx + 0x18]
shr rax, 0x20
movsxd rcx, eax
movzx r9d, byte [rcx + rsi]
mov rcx, qword [rbx + 0x10]
cmp rcx, rdx
jae 0x140140420
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140140415
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140140428
mov rcx, rbx
call fcn.14013c630
sub rdi, 1
jne 0x1401403b0
lea edx, [rdi + 0x40]
mov rcx, rsi
call fcn.1401c7f18
lea r11, [rsp + 0x13d0]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401414a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140141504
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x140141520
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1401414e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x140143ae0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140143b54
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140143b54
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x140143b70
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140143b30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x140143b90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [0x14051e4c0]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
mov edx, 0x100
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
test eax, eax
je 0x140143bd9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret