Function at 0x140008410
Capabilities:
Contain obfuscated stackstrings
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header

Disassembly:
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r8d, r8d
mov eax, eax
lea r9, [rbp + 0x1c0]
mov qword [0x1400504d0], rax
mov dl, 1
lea ecx, [r8 + 0x16]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
jns 0x140008455
xor al, al
add rsp, 0x2b0
pop rbp
ret
mov qword [rsp + 0x2a8], rbx
lea r9, [rbp + 0x1c0]
xor ebx, ebx
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x298], rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x278], r15
mov dword [rsp + 0x30], 0x736f746e
lea ecx, [rbx + 0xb]
mov dword [rsp + 0x34], 0x6c6e726b
mov dword [rsp + 0x38], 0x6578652e
mov byte [rsp + 0x3c], 0
mov dword [rbp + 0x1c0], ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140008518
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 0x1c0]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140008576
mov r8d, dword [rbp + 0x1c0]
lea r9, [rbp + 0x1c0]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400084c0
test eax, eax
js 0x140008565
test rbx, rbx
je 0x140008565
xor edi, edi
cmp dword [rbx], edi
jbe 0x140008565
nop word [rax + rax]
mov eax, edi
lea rdx, [rsp + 0x30]
imul rcx, rax, 0x128
movzx eax, word [rcx + rbx + 0x2e]
add rax, 0x30
lea rsi, [rcx + rbx]
add rcx, rax
add rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008639
inc edi
cmp edi, dword [rbx]
jb 0x140008530
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
xor eax, eax
mov dword [rsp + 0x60], 0x6f4c7350
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x3c], al
mov dword [rsp + 0x64], 0x70756b6f
mov dword [rsp + 0x68], 0x636f7250
mov dword [rsp + 0x6c], 0x42737365
mov dword [rsp + 0x70], 0x6f725079
mov dword [rsp + 0x74], 0x73736563
mov word [rsp + 0x78], 0x6449
mov byte [rsp + 0x7a], al
mov dword [rsp + 0x40], 0x65477350
mov dword [rsp + 0x44], 0x6f725074
mov dword [rsp + 0x48], 0x73736563
mov dword [rsp + 0x4c], 0x74636553
mov dword [rsp + 0x50], 0x426e6f69
mov dword [rsp + 0x54], 0x41657361
mov dword [rsp + 0x58], 0x65726464
mov word [rsp + 0x5c], 0x7373
mov byte [rsp + 0x5e], al
mov dword [rbp - 0x80], 0x6f436d4d
mov dword [rbp - 0x7c], 0x69567970
mov dword [rbp - 0x78], 0x61757472
mov dword [rbp - 0x74], 0x6d654d6c
mov dword [rbp - 0x70], 0x79726f
test rdi, rdi
jne 0x140008653
xor r15d, r15d
xor esi, esi
xor ebx, ebx
jmp 0x140008a42
mov rdi, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140008578
xorps xmm0, xmm0
mov qword [rsp + 0x290], r12
mov qword [rsp + 0x288], r13
lea rcx, [rbp + 0x60]
xor edx, edx
mov qword [rsp + 0x280], r14
mov r8d, 0x108
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], 0x40
mov rdx, rdi
mov ecx, 4
call fcn.140008360
mov eax, 0x5a4d
cmp word [rbp - 0x40], ax
jne 0x1400087a2
movsxd rdx, dword [rbp - 4]
lea r9, [rbp + 0x60]
add rdx, rdi
mov qword [rsp + 0x20], 0x108
mov ecx, 4
call fcn.140008360
cmp dword [rbp + 0x60], 0x4550
jne 0x1400087a2
mov ebx, dword [rbp + 0xe8]
test ebx, ebx
je 0x1400087a2
mov eax, dword [rbp + 0xec]
test eax, eax
je 0x1400087a2
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 4
mov qword [rbp - 0x68], rbx
mov rsi, rax
mov qword [rsp + 0x20], r13
lea rax, [rbx + rdi]
mov r9, rsi
mov rdx, rax
mov qword [rbp + 0x1d8], rax
call fcn.140008360
mov eax, dword [rsi + 0x24]
mov r15, rsi
mov r12d, dword [rsi + 0x20]
sub r15, rbx
add rax, r15
add r12, r15
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
mov eax, dword [rsi + 0x1c]
add rax, r15
mov qword [rbp + 0x1d0], rax
cmp dword [rsi + 0x18], ebx
jbe 0x140008791
nop dword [rax]
mov ecx, dword [r12 + rbx*4]
lea rdx, [rsp + 0x60]
add rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008b19
inc ebx
cmp ebx, dword [rsi + 0x18]
jb 0x140008770
mov r8d, 0x8000
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor r15d, r15d
xorps xmm0, xmm0
lea rcx, [rbp + 0x60]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], 0x40
mov rdx, rdi
mov ecx, 4
call fcn.140008360
mov eax, 0x5a4d
cmp word [rbp - 0x40], ax
jne 0x1400088e4
movsxd rdx, dword [rbp - 4]
lea r9, [rbp + 0x60]
add rdx, rdi
mov qword [rsp + 0x20], 0x108
mov ecx, 4
call fcn.140008360
cmp dword [rbp + 0x60], 0x4550
jne 0x1400088e4
mov ebx, dword [rbp + 0xe8]
test ebx, ebx
je 0x1400088e4
mov eax, dword [rbp + 0xec]
test eax, eax
je 0x1400088e4
mov r9d, 4
mov qword [rbp - 0x68], rax
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 4
mov qword [rbp - 0x60], rbx
mov r14, rax
mov qword [rsp + 0x20], rsi
lea rax, [rbx + rdi]
mov r9, r14
mov rdx, rax
mov qword [rbp + 0x1d8], rax
call fcn.140008360
mov eax, dword [r14 + 0x24]
mov r12, r14
mov r13d, dword [r14 + 0x20]
sub r12, rbx
add rax, r12
add r13, r12
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
mov eax, dword [r14 + 0x1c]
add rax, r12
mov qword [rbp + 0x1d0], rax
cmp dword [r14 + 0x18], ebx
jbe 0x1400088d3
nop dword [rax]
mov ecx, dword [r13 + rbx*4]
lea rdx, [rsp + 0x40]
add rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008b64
inc ebx
cmp ebx, dword [r14 + 0x18]
jb 0x1400088b0
mov r8d, 0x8000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
xorps xmm0, xmm0
lea rcx, [rbp + 0x60]
xor edx, edx
mov r8d, 0x108
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], 0x40
mov rdx, rdi
mov ecx, 4
call fcn.140008360
mov eax, 0x5a4d
cmp word [rbp - 0x40], ax
jne 0x140008a28
movsxd rdx, dword [rbp - 4]
lea r9, [rbp + 0x60]
add rdx, rdi
mov qword [rsp + 0x20], 0x108
mov ecx, 4
call fcn.140008360
cmp dword [rbp + 0x60], 0x4550
jne 0x140008a28
mov ebx, dword [rbp + 0xe8]
test ebx, ebx
je 0x140008a28
mov eax, dword [rbp + 0xec]
test eax, eax
je 0x140008a28
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 4
mov qword [rbp - 0x58], rbx
mov r14, rax
mov qword [rsp + 0x20], r12
lea rax, [rbx + rdi]
mov r9, r14
mov rdx, rax
mov qword [rbp - 0x60], rax
call fcn.140008360
mov ecx, dword [r14 + 0x24]
mov r13, r14
mov eax, dword [r14 + 0x20]
sub r13, rbx
add rcx, r13
add rax, r13
mov qword [rbp + 0x1d0], rcx
xor ebx, ebx
mov ecx, dword [r14 + 0x1c]
add rcx, r13
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1d8], rcx
cmp dword [r14 + 0x18], ebx
jbe 0x140008a17
nop
mov ecx, dword [rax + rbx*4]
lea rdx, [rbp - 0x80]
add rcx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008baf
mov rax, qword [rbp + 0x1c0]
inc ebx
cmp ebx, dword [r14 + 0x18]
jb 0x1400089f0
mov r8d, 0x8000
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov r13, qword [rsp + 0x288]
mov r12, qword [rsp + 0x290]
mov r14, qword [rsp + 0x280]
xor eax, eax
mov dword [rbp + 4], 0x254ee0c
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
mov word [rsp + 0x78], ax
lea r8, [rbp]
mov byte [rsp + 0x7a], al
lea rdx, [0x1400500b0]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x58]
mov dword [rsp + 0x58], eax
mov r9d, 0x58
mov word [rsp + 0x5c], ax
mov byte [rsp + 0x5e], al
mov dword [rbp - 0x70], eax
mov qword [rbp + 0x1c8], rax
lea rax, [rbp + 0x1c8]
mov qword [rbp + 0x20], rax
lea rax, str.TheRealAfricanZebra311
mov qword [rbp - 0x50], rax
movups xmmword [rsp + 0x60], xmm0
mov dword [rbp], 0x2c478584
movups xmmword [rsp + 0x40], xmm0
mov qword [rbp + 8], r15
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp + 0x10], rsi
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x18], rbx
movups xmmword [rbp + 0x38], xmm0
mov dword [rbp - 0x58], 0x320030
movups xmmword [rbp + 0x48], xmm0
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntdll.dll_NtSetSystemEnvironmentValueEx]
cmp qword [rbp + 0x1c8], 0
mov r15, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x298]
setne al
mov rsi, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x2b0
pop rbp
ret
mov rax, qword [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1d0]
movzx eax, word [rax + rbx*2]
mov r15d, dword [rcx + rax*4]
add r15, rdi
cmp r15, qword [rbp + 0x1d8]
jb 0x140008b4e
mov rax, qword [rbp - 0x68]
add rax, r13
add rax, rdi
cmp r15, rax
jbe 0x140008791
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400087a5
mov rax, qword [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1d0]
movzx eax, word [rax + rbx*2]
mov esi, dword [rcx + rax*4]
add rsi, rdi
cmp rsi, qword [rbp + 0x1d8]
jb 0x140008b99
mov rax, qword [rbp - 0x68]
add rax, qword [rbp - 0x60]
add rax, rdi
cmp rsi, rax
jbe 0x1400088d3
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400088e6
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rbp + 0x1d8]
movzx eax, word [rax + rbx*2]
mov ebx, dword [rcx + rax*4]
add rbx, rdi
cmp rbx, qword [rbp - 0x60]
jb 0x140008be0
mov rax, r12
add rax, qword [rbp - 0x58]
add rax, rdi
cmp rbx, rax
jbe 0x140008a17
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140008a2a