Function at 0x1400d9a60
Capabilities:
Allocate or change rwx memory
Authenticate hmac
Get system information on windows
Make suspicious ntquerysysteminformation call
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1403f20c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
xor r15d, r15d
lea rcx, [0x14048d6c2]
call fcn.140289ea0
mov dword [rbp - 9], r15d
mov ebx, r15d
lea r9, [rbp - 9]
xor r8d, r8d
xor edx, edx
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400d9b0a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 9]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 9]
mov r8d, dword [rbp - 9]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400d9ac2
test eax, eax
js 0x1400da55f
test rbx, rbx
je 0x1400da575
mov r14, r15
mov edi, r15d
cmp qword [rbx], rdi
jbe 0x1400d9b86
mov rax, r15
nop dword [rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rbx + rax*8 + 0x10]
movups xmmword [rbp + 0x27], xmm0
movups xmm0, xmmword [rbx + rax*8 + 0x20]
movups xmmword [rbp - 0x19], xmm0
movsd xmm0, qword [rbx + rax*8 + 0x30]
movsd qword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movups xmm1, xmmword [rbp + 0x27]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x1400d9b76
cmp qword [rbp - 0x19], rsi
je 0x1400d9b81
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x1400d9b30
jmp 0x1400d9b86
movq r14, xmm1
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x1400da575
mov qword [rbp + 0x17], r15
lea r8, [r14 + 8]
mov r9d, 8
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.1400d8a70
test al, al
je 0x1400da434
mov r8, qword [rbp + 0x17]
test r8, r8
je 0x1400da434
mov qword [rbp + 0x1f], r15
add r8, 8
mov r9d, 8
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.1400d8a70
test al, al
je 0x1400da302
mov r8, qword [rbp + 0x1f]
test r8, r8
je 0x1400da302
mov qword [rbp + 0xf], r15
add r8, 0x28
mov r9d, 8
lea rdx, [rbp + 0xf]
mov rcx, rsi
call fcn.1400d8a70
test al, al
je 0x1400da1e0
mov r8, qword [rbp + 0xf]
test r8, r8
je 0x1400da1e0
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
add r8, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 1]
mov rcx, rsi
call fcn.1400d8a70
test al, al
je 0x1400da0ad
movzx eax, word [rbp - 1]
test ax, ax
je 0x1400da0ad
mov ecx, eax
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rbx, rax
mov rax, 0xffffffffffffffff
cmovb rbx, rax
mov rcx, rbx
call fcn.140288e8c
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x27], r14
movzx r9d, word [rbp - 1]
mov r8, qword [rbp + 7]
mov rdx, r14
mov rcx, rsi
call fcn.1400d8a70
test al, al
jne 0x1400d9dc1
mov cl, 0x40
mov word [rbp - 0x69], 0x40
movsx ebx, cl
movzx eax, bx
xor ax, 0x1b
mov word [rbp - 0x67], ax
movzx eax, bx
xor ax, 0x61
mov word [rbp - 0x65], ax
movzx eax, bx
xor ax, 0x1d
mov word [rbp - 0x63], ax
movzx r11d, bx
xor r11w, 0x60
mov word [rbp - 0x61], r11w
movzx eax, bx
xor ax, 6
mov word [rbp - 0x5f], ax
movzx r10d, bx
xor r10w, 0x21
mov word [rbp - 0x5d], r10w
movzx r8d, bx
xor r8w, 0x29
mov word [rbp - 0x5b], r8w
movzx eax, bx
xor ax, 0x2c
mov word [rbp - 0x59], ax
movzx r9d, bx
xor r9w, 0x25
mov word [rbp - 0x57], r9w
movzx edx, bx
xor dx, 0x24
mov word [rbp - 0x55], dx
mov word [rbp - 0x53], r11w
movzx eax, bx
xor ax, 0x34
mov word [rbp - 0x51], ax
movzx eax, bx
xor ax, 0x2f
mov word [rbp - 0x4f], ax
mov word [rbp - 0x4d], r11w
movzx ecx, bx
xor cx, 0x32
mov word [rbp - 0x4b], cx
mov word [rbp - 0x49], r9w
mov word [rbp - 0x47], r10w
mov word [rbp - 0x45], dx
mov word [rbp - 0x43], r11w
mov word [rbp - 0x41], dx
mov word [rbp - 0x3f], cx
mov word [rbp - 0x3d], r8w
movzx eax, bx
xor ax, 0x36
mov word [rbp - 0x3b], ax
mov word [rbp - 0x39], r9w
mov word [rbp - 0x37], cx
mov word [rbp - 0x35], r11w
movzx eax, bx
xor ax, 0x2e
mov word [rbp - 0x33], ax
mov word [rbp - 0x31], r10w
xor bx, 0x2d
mov word [rbp - 0x2d], r9w
mov word [rbp - 0x2b], r15w
jmp 0x1400d9f23
mov word [rbp - 1], r15w
mov rdx, qword [rbp + 0xf]
add rdx, 0x58
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 1]
mov rcx, rsi
call fcn.1400d8a70
test al, al
jne 0x1400d9f4e
mov cl, 0x7a
mov word [rbp - 0x69], 0x7a
movsx esi, cl
movzx eax, si
xor ax, 0x21
mov word [rbp - 0x67], ax
movzx eax, si
xor ax, 0x5b
mov word [rbp - 0x65], ax
movzx eax, si
xor ax, 0x27
mov word [rbp - 0x63], ax
movzx edi, si
xor di, 0x5a
mov word [rbp - 0x61], di
movzx eax, si
xor ax, 0x3c
mov word [rbp - 0x5f], ax
movzx ebx, si
xor bx, 0x1b
mov word [rbp - 0x5d], bx
movzx r8d, si
xor r8w, 0x13
mov word [rbp - 0x5b], r8w
movzx r11d, si
xor r11w, 0x16
mov word [rbp - 0x59], r11w
movzx r10d, si
xor r10w, 0x1f
mov word [rbp - 0x57], r10w
movzx edx, si
xor dx, 0x1e
mov word [rbp - 0x55], dx
mov word [rbp - 0x53], di
movzx r9d, si
xor r9w, 0xe
mov word [rbp - 0x51], r9w
movzx eax, si
xor ax, 0x15
mov word [rbp - 0x4f], ax
mov word [rbp - 0x4d], di
movzx eax, si
xor ax, 0xd
mov word [rbp - 0x4b], ax
movzx ecx, si
xor cx, 8
mov word [rbp - 0x49], cx
mov word [rbp - 0x47], r8w
mov word [rbp - 0x45], r9w
mov word [rbp - 0x43], r10w
mov word [rbp - 0x41], di
mov word [rbp - 0x3f], dx
mov word [rbp - 0x3d], cx
mov word [rbp - 0x3b], r8w
movzx eax, si
xor ax, 0xc
mov word [rbp - 0x39], ax
mov word [rbp - 0x37], r10w
mov word [rbp - 0x35], cx
mov word [rbp - 0x33], di
movzx edx, si
xor dx, 0x14
mov word [rbp - 0x31], dx
movzx eax, si
xor ax, 0x17
mov word [rbp - 0x2d], ax
mov word [rbp - 0x2b], r10w
mov word [rbp - 0x29], di
mov word [rbp - 0x27], r11w
mov word [rbp - 0x25], r10w
mov word [rbp - 0x23], dx
movzx eax, si
xor ax, 0x1d
mov word [rbp - 0x21], ax
mov word [rbp - 0x1f], r9w
xor si, 0x12
mov word [rbp - 0x1d], si
mov word [rbp - 0x1b], r15w
mov word [rbp - 0x2f], bx
lea rdx, [rbp - 0x67]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400e0430
lea rdx, [0x1400e0620]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor bl, bl
jmp 0x1400da09d
mov cl, 0x5d
mov word [rbp - 0x69], 0x5d
movsx edi, cl
movzx eax, di
xor ax, 6
mov word [rbp - 0x67], ax
movzx eax, di
xor ax, 0x76
mov word [rbp - 0x65], ax
mov word [rbp - 0x63], di
movzx ebx, di
xor bx, 0x7d
mov word [rbp - 0x61], bx
movzx eax, di
xor ax, 0x10
mov word [rbp - 0x5f], ax
movzx eax, di
xor ax, 0x30
mov word [rbp - 0x5d], ax
movzx eax, di
xor ax, 8
mov word [rbp - 0x5b], ax
movzx r11d, di
xor r11w, 0x33
mov word [rbp - 0x59], r11w
movzx r10d, di
xor r10w, 0x31
mov word [rbp - 0x57], r10w
movzx eax, di
xor ax, 0x32
mov word [rbp - 0x55], ax
movzx r9d, di
xor r9w, 0x3c
mov word [rbp - 0x53], r9w
movzx r8d, di
xor r8w, 0x39
mov word [rbp - 0x51], r8w
movzx edx, di
xor dx, 0x38
mov word [rbp - 0x4f], dx
mov word [rbp - 0x4d], r8w
movzx eax, di
xor ax, 0x19
mov word [rbp - 0x4b], ax
movzx ecx, di
xor cx, 0x2f
mov word [rbp - 0x49], cx
movzx eax, di
xor ax, 0x34
mov word [rbp - 0x47], ax
movzx eax, di
xor ax, 0x2b
mov word [rbp - 0x45], ax
mov word [rbp - 0x43], dx
mov word [rbp - 0x41], cx
movzx eax, di
xor ax, 0x2e
mov word [rbp - 0x3f], ax
mov word [rbp - 0x3d], bx
movzx eax, di
xor ax, 0x1e
mov word [rbp - 0x3b], ax
mov word [rbp - 0x39], r10w
mov word [rbp - 0x37], dx
mov word [rbp - 0x35], r9w
mov word [rbp - 0x33], r11w
mov word [rbp - 0x31], dx
mov word [rbp - 0x2f], r8w
xor di, 0x67
mov word [rbp - 0x2d], di
mov word [rbp - 0x2b], bx
mov word [rbp - 0x29], r15w
lea rdx, [rbp - 0x67]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400e0430
mov rbx, rax
mov rdx, r14
mov rcx, rax
call fcn.1400e0430
lea rdx, [0x1400e0620]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov bl, 1
mov rcx, r14
call fcn.140288a10
movzx eax, bl
jmp 0x1400da577
mov cl, reloc.WS2_32.dll_listen
mov word [rbp - 0x69], reloc.WS2_32.dll_listen
movsx edi, cl
movzx eax, di
xor ax, 0x56
mov word [rbp - 0x67], ax
movzx eax, di
xor ax, 0x2c
mov word [rbp - 0x65], ax
movzx eax, di
xor ax, 0x50
mov word [rbp - 0x63], ax
movzx ebx, di
xor bx, 0x2d
mov word [rbp - 0x61], bx
movzx eax, di
xor ax, 0x4b
mov word [rbp - 0x5f], ax
movzx r11d, di
xor r11w, 0x6c
mov word [rbp - 0x5d], r11w
movzx r9d, di
xor r9w, 0x64
mov word [rbp - 0x5b], r9w
movzx eax, di
xor ax, 0x61
mov word [rbp - 0x59], ax
movzx r10d, di
xor r10w, 0x68
mov word [rbp - 0x57], r10w
movzx ecx, di
xor cx, 0x69
mov word [rbp - 0x55], cx
mov word [rbp - 0x53], bx
movzx eax, di
xor ax, 0x79
mov word [rbp - 0x51], ax
movzx eax, di
xor ax, 0x62
mov word [rbp - 0x4f], ax
mov word [rbp - 0x4d], bx
movzx eax, di
xor ax, 0x6b
mov word [rbp - 0x4b], ax
mov word [rbp - 0x49], r9w
movzx r8d, di
xor r8w, 0x63
mov word [rbp - 0x47], r8w
mov word [rbp - 0x45], cx
mov word [rbp - 0x43], bx
mov word [rbp - 0x41], cx
movzx edx, di
xor dx, 0x7f
mov word [rbp - 0x3f], dx
mov word [rbp - 0x3d], r9w
movzx eax, di
xor ax, 0x7b
mov word [rbp - 0x3b], ax
mov word [rbp - 0x37], dx
mov word [rbp - 0x35], bx
mov word [rbp - 0x33], r8w
mov word [rbp - 0x31], r11w
xor di, 0x60
mov word [rbp - 0x2f], di
mov word [rbp - 0x2d], r10w
mov word [rbp - 0x2b], r15w
mov word [rbp - 0x39], r10w
lea rdx, [rbp - 0x67]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400e0430
lea rdx, [0x1400e0620]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x1400da575
mov cl, 0x66
mov word [rbp - 0x69], 0x66
movsx ebx, cl
movzx eax, bx
xor ax, 0x3d
mov word [rbp - 0x67], ax
movzx eax, bx
xor ax, 0x47
mov word [rbp - 0x65], ax
movzx eax, bx
xor ax, 0x3b
mov word [rbp - 0x63], ax
movzx ecx, bx
xor cx, 0x46
mov word [rbp - 0x61], cx
movzx eax, bx
xor ax, 0x20
mov word [rbp - 0x5f], ax
movzx eax, bx
xor ax, 7
mov word [rbp - 0x5d], ax
movzx r11d, bx
xor r11w, 0xf
mov word [rbp - 0x5b], r11w
movzx eax, bx
xor ax, 0xa
mov word [rbp - 0x59], ax
movzx r10d, bx
xor r10w, 3
mov word [rbp - 0x57], r10w
movzx eax, bx
xor ax, 2
mov word [rbp - 0x55], ax
mov word [rbp - 0x53], cx
movzx r9d, bx
xor r9w, 0x12
mov word [rbp - 0x51], r9w
movzx r8d, bx
xor r8w, 9
mov word [rbp - 0x4f], r8w
mov word [rbp - 0x4d], cx
mov word [rbp - 0x4b], bx
mov word [rbp - 0x49], r11w
movzx edx, bx
xor dx, 8
mov word [rbp - 0x47], dx
mov word [rbp - 0x45], ax
mov word [rbp - 0x43], cx
mov word [rbp - 0x41], ax
movzx ecx, bx
xor cx, 0x14
mov word [rbp - 0x3f], cx
mov word [rbp - 0x3d], r11w
movzx eax, bx
xor ax, 0x10
mov word [rbp - 0x3b], ax
mov word [rbp - 0x37], cx
movzx eax, bx
xor ax, 0x39
mov word [rbp - 0x35], ax
movzx eax, bx
xor ax, 0x15
mov word [rbp - 0x33], ax
mov word [rbp - 0x31], r10w
xor bx, 5
mov word [rbp - 0x2f], bx
mov word [rbp - 0x2d], r9w
mov word [rbp - 0x2b], r11w
mov word [rbp - 0x29], r8w
mov word [rbp - 0x27], dx
mov word [rbp - 0x25], r15w
jmp 0x1400da1b6
mov cl, 0x35
mov word [rbp - 0x69], gethostname
movsx ebx, cl
movzx eax, bx
xor ax, 0x6e
mov word [rbp - 0x67], ax
movzx eax, bx
xor ax, 0x14
mov word [rbp - 0x65], ax
movzx eax, bx
xor ax, 0x68
mov word [rbp - 0x63], ax
movzx r10d, bx
xor r10w, 0x15
mov word [rbp - 0x61], r10w
movzx eax, bx
xor ax, 0x73
mov word [rbp - 0x5f], ax
movzx eax, bx
xor ax, 0x54
mov word [rbp - 0x5d], ax
movzx r8d, bx
xor r8w, 0x5c
mov word [rbp - 0x5b], r8w
movzx eax, bx
xor ax, 0x59
mov word [rbp - 0x59], ax
movzx r11d, bx
xor r11w, 0x50
mov word [rbp - 0x57], r11w
movzx ecx, bx
xor cx, 0x51
mov word [rbp - 0x55], cx
mov word [rbp - 0x53], r10w
movzx r9d, bx
xor r9w, 0x41
mov word [rbp - 0x51], r9w
movzx edx, bx
xor dx, 0x5a
mov word [rbp - 0x4f], dx
mov word [rbp - 0x4d], r10w
movzx eax, bx
xor ax, 0x53
mov word [rbp - 0x4b], ax
mov word [rbp - 0x49], r8w
movzx eax, bx
xor ax, 0x5b
mov word [rbp - 0x47], ax
mov word [rbp - 0x45], cx
mov word [rbp - 0x43], r10w
mov word [rbp - 0x41], cx
movzx ecx, bx
xor cx, 0x47
mov word [rbp - 0x3f], cx
mov word [rbp - 0x3d], r8w
movzx eax, bx
xor ax, 0x43
mov word [rbp - 0x3b], ax
mov word [rbp - 0x39], r11w
mov word [rbp - 0x37], cx
movzx eax, bx
xor ax, 0x6a
mov word [rbp - 0x35], ax
mov word [rbp - 0x33], dx
movzx eax, bx
xor ax, 0x57
mov word [rbp - 0x31], ax
movzx eax, bx
xor ax, 0x5f
mov word [rbp - 0x2f], ax
mov word [rbp - 0x2d], r11w
xor bx, 0x56
mov word [rbp - 0x2b], bx
mov word [rbp - 0x29], r9w
mov word [rbp - 0x27], r15w
jmp 0x1400da1bb
mov cl, reloc.WLDAP32.dll_Ordinal_35
mov word [rbp - 0x69], reloc.WLDAP32.dll_Ordinal_35
movsx ebx, cl
movzx eax, bx
xor ax, 0x78
mov word [rbp - 0x67], ax
movzx eax, bx
xor ax, 2
mov word [rbp - 0x65], ax
movzx eax, bx
xor ax, 0x7e
mov word [rbp - 0x63], ax
movzx r10d, bx
xor r10w, 3
mov word [rbp - 0x61], r10w
movzx eax, bx
xor ax, 0x65
mov word [rbp - 0x5f], ax
movzx eax, bx
xor ax, 0x42
mov word [rbp - 0x5d], ax
movzx edx, bx
xor dx, 0x4a
mov word [rbp - 0x5b], dx
movzx eax, bx
xor ax, 0x4f
mov word [rbp - 0x59], ax
movzx r11d, bx
xor r11w, 0x46
mov word [rbp - 0x57], r11w
movzx ecx, bx
xor cx, 0x47
mov word [rbp - 0x55], cx
mov word [rbp - 0x53], r10w
movzx r9d, bx
xor r9w, 0x57
mov word [rbp - 0x51], r9w
movzx r8d, bx
xor r8w, 0x4c
mov word [rbp - 0x4f], r8w
mov word [rbp - 0x4d], r10w
movzx eax, bx
xor ax, 0x45
mov word [rbp - 0x4b], ax
mov word [rbp - 0x49], dx
movzx eax, bx
xor ax, 0x4d
mov word [rbp - 0x47], ax
mov word [rbp - 0x45], cx
mov word [rbp - 0x43], r10w
mov word [rbp - 0x41], cx
mov word [rbp - 0x3f], r11w
movzx eax, bx
xor ax, 0x55
mov word [rbp - 0x3d], ax
mov word [rbp - 0x3b], dx
movzx edx, bx
xor dx, 0x40
mov word [rbp - 0x39], dx
mov word [rbp - 0x37], r11w
movzx eax, bx
xor ax, 0x7c
mov word [rbp - 0x35], ax
mov word [rbp - 0x33], r8w
movzx eax, bx
xor ax, 0x41
mov word [rbp - 0x31], ax
xor bx, 0x49
mov word [rbp - 0x2f], bx
mov word [rbp - 0x2d], r11w
mov word [rbp - 0x2b], dx
mov word [rbp - 0x29], r9w
mov word [rbp - 0x27], r15w
jmp 0x1400da1bb
test rbx, rbx
je 0x1400da575
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402889f0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret