Function at 0x140036850
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rbx, rcx
xor edi, edi
mov dword [rbp - 0x60], edi
mov edx, 0x100
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rdi
mov word [rbp - 0x58], di
cmp word [rbp - 0x30], di
jne 0x1400368a4
mov r8d, edi
jmp 0x1400368ba
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x1400368b0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.140049630
nop
mov ecx, 0x5c
xor edx, edx
call fcn.140035aa0
mov word [rsp + 0x20], ax
lea ecx, [rdx + 0x53]
lea edx, [rcx - 0x52]
call fcn.140035aa0
mov word [rsp + 0x22], ax
lea ecx, [rdx + 0x6e]
lea edx, [rcx - 0x6d]
call fcn.140035aa0
mov word [rsp + 0x24], ax
lea ecx, [rdx + 0x64]
lea edx, [rcx - 0x63]
call fcn.140035aa0
mov word [rsp + 0x26], ax
lea ecx, [rdx + 0x71]
lea edx, [rcx - 0x70]
call fcn.140035aa0
mov word [rsp + 0x28], ax
lea ecx, [rdx + 0x73]
lea edx, [rcx - 0x72]
call fcn.140035aa0
mov word [rsp + 0x2a], ax
lea ecx, [rdx + 0x5c]
lea edx, [rcx - 0x5b]
call fcn.140035aa0
mov word [rsp + 0x2c], ax
lea ecx, [rdx + 0x6c]
lea edx, [rcx - 0x6b]
call fcn.140035aa0
mov word [rsp + 0x2e], ax
lea ecx, [rdx + 0x5e]
lea edx, [rcx - 0x5d]
call fcn.140035aa0
mov word [rsp + 0x30], ax
lea ecx, [rdx + 0x3c]
lea edx, [rcx - 0x3b]
call fcn.140035aa0
mov word [rsp + 0x32], ax
lea ecx, [rdx + 0x60]
lea edx, [rcx - 0x5f]
call fcn.140035aa0
mov word [rsp + 0x34], ax
lea ecx, [rdx + 0x69]
lea edx, [rcx - 0x68]
call fcn.140035aa0
mov word [rsp + 0x36], ax
lea ecx, [rdx + 0x69]
lea edx, [rcx - 0x68]
call fcn.140035aa0
mov word [rsp + 0x38], ax
lea ecx, [rdx + 0x66]
lea edx, [rcx - 0x65]
call fcn.140035aa0
mov word [rsp + 0x3a], ax
lea ecx, [rdx + 0x5c]
lea edx, [rcx - 0x5b]
call fcn.140035aa0
mov word [rsp + 0x3c], ax
lea ecx, [rdx + 0x54]
lea edx, [rcx - 0x53]
call fcn.140035aa0
mov word [rsp + 0x3e], ax
lea ecx, [rdx + 0x66]
lea edx, [rcx - 0x65]
call fcn.140035aa0
mov word [rsp + 0x40], ax
lea ecx, [rdx + 0x64]
lea edx, [rcx - 0x63]
call fcn.140035aa0
mov word [rsp + 0x42], ax
lea ecx, [rdx + 0x58]
lea edx, [rcx - 0x57]
call fcn.140035aa0
mov word [rsp + 0x44], ax
lea ecx, [rdx + 0x5d]
lea edx, [rcx - 0x5c]
call fcn.140035aa0
mov word [rsp + 0x46], ax
lea ecx, [rdx + 0x5b]
lea edx, [rcx - 0x5a]
call fcn.140035aa0
mov word [rsp + 0x48], ax
lea ecx, [rdx + 0x48]
lea edx, [rcx - 0x47]
call fcn.140035aa0
mov word [rsp + 0x4a], ax
lea ecx, [rdx + 0x2f]
lea edx, [rcx - 0x2e]
call fcn.140035aa0
mov word [rsp + 0x4c], ax
lea ecx, [rdx + 0x59]
lea edx, [rcx - 0x58]
call fcn.140035aa0
mov word [rsp + 0x4e], ax
lea ecx, [rdx + 0x60]
lea edx, [rcx - 0x5f]
call fcn.140035aa0
mov word [rsp + 0x50], ax
lea ecx, [rdx + 0x56]
lea edx, [rcx - 0x55]
call fcn.140035aa0
mov word [rsp + 0x52], ax
lea ecx, [rdx + 0x53]
lea edx, [rcx - 0x52]
call fcn.140035aa0
mov word [rsp + 0x54], ax
lea ecx, [rdx + 0x55]
lea edx, [rcx - 0x54]
call fcn.140035aa0
mov word [rsp + 0x56], ax
lea ecx, [rdx + 0x46]
lea edx, [rcx - 0x45]
call fcn.140035aa0
mov word [rsp + 0x58], ax
lea ecx, [rdx + 0x48]
lea edx, [rcx - 0x47]
call fcn.140035aa0
mov word [rsp + 0x5a], ax
lea ecx, [rdx + 0x3f]
lea edx, [rcx - 0x3e]
call fcn.140035aa0
mov word [rsp + 0x5c], ax
xor ecx, ecx
lea edx, [rcx + 0x1f]
call fcn.140035aa0
mov word [rsp + 0x5e], ax
lea edx, [rcx + 0x20]
movzx ecx, word [str.runas]
call fcn.140035aa0
mov word [rsp + 0x60], ax
mov edx, reloc.WLDAP32.dll_Ordinal_33
movzx ecx, word [0x1400a7562]
call fcn.140035aa0
mov word [rsp + 0x62], ax
mov edx, Ordinal_35
movzx ecx, word [0x1400a7564]
call fcn.140035aa0
mov word [rsp + 0x64], ax
mov edx, reloc.WLDAP32.dll_Ordinal_35
movzx ecx, word [0x1400a7566]
call fcn.140035aa0
mov word [rsp + 0x66], ax
mov edx, 0x24
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.140035aa0
mov word [rsp + 0x68], ax
mov edx, Ordinal_41
movzx ecx, word [0x1400a756a]
call fcn.140035aa0
mov word [rsp + 0x6a], ax
mov edx, Ordinal_41
movzx ecx, word [0x1400a756c]
call fcn.140035aa0
mov word [rsp + 0x6c], ax
mov edx, Ordinal_41
movzx ecx, word [0x1400a756e]
call fcn.140035aa0
mov word [rsp + 0x6e], ax
mov edx, Ordinal_41
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
call fcn.140035aa0
mov word [rsp + 0x70], ax
mov edx, reloc.WLDAP32.dll_Ordinal_41
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.140035aa0
mov word [rsp + 0x72], ax
mov edx, Ordinal_46
movzx ecx, word [0x1400a7574]
call fcn.140035aa0
mov word [rsp + 0x74], ax
mov edx, Ordinal_46
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.140035aa0
mov word [rsp + 0x76], ax
mov edx, Ordinal_46
movzx ecx, word [0x1400a7578]
call fcn.140035aa0
mov word [rsp + 0x78], ax
mov edx, Ordinal_46
movzx ecx, word [0x1400a757a]
call fcn.140035aa0
mov word [rsp + 0x7a], ax
mov edx, reloc.WLDAP32.dll_Ordinal_46
movzx ecx, word [0x1400a757c]
call fcn.140035aa0
mov word [rsp + 0x7c], ax
mov edx, Ordinal_50
movzx ecx, word [0x1400a757e]
call fcn.140035aa0
mov word [rsp + 0x7e], ax
mov edx, Ordinal_50
movzx ecx, word [str..exe]
call fcn.140035aa0
mov word [rbp - 0x80], ax
mov edx, Ordinal_50
movzx ecx, word [0x1400a7582]
call fcn.140035aa0
mov word [rbp - 0x7e], ax
mov edx, reloc.WLDAP32.dll_Ordinal_50
movzx ecx, word [0x1400a7584]
call fcn.140035aa0
mov word [rbp - 0x7c], ax
mov edx, 0x33
movzx ecx, word [0x1400a7586]
call fcn.140035aa0
mov word [rbp - 0x7a], ax
mov edx, 0x34
movzx ecx, word [0x1400a7588]
call fcn.140035aa0
mov word [rbp - 0x78], ax
mov edx, gethostname
movzx ecx, word [0x1400a758a]
call fcn.140035aa0
mov word [rbp - 0x76], ax
mov edx, gethostname
movzx ecx, word [0x1400a758c]
call fcn.140035aa0
mov word [rbp - 0x74], ax
mov edx, gethostname
movzx ecx, word [0x1400a758e]
call fcn.140035aa0
mov word [rbp - 0x72], ax
mov edx, gethostname
movzx ecx, word [0x1400a7590]
call fcn.140035aa0
mov word [rbp - 0x70], ax
mov edx, reloc.WS2_32.dll_gethostname
movzx ecx, word [0x1400a7592]
call fcn.140035aa0
mov word [rbp - 0x6e], ax
mov edx, Ordinal_60
movzx ecx, word [0x1400a7594]
call fcn.140035aa0
mov word [rbp - 0x6c], ax
mov edx, Ordinal_60
movzx ecx, word [reloc.WS2_32.dll_WSASetLastError]
call fcn.140035aa0
mov word [rbp - 0x6a], ax
mov edx, reloc.WLDAP32.dll_Ordinal_60
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_32]
call fcn.140035aa0
mov word [rbp - 0x68], ax
mov edx, 0x3d
movzx ecx, word [0x1400a759a]
call fcn.140035aa0
mov word [rbp - 0x66], ax
mov edx, 0x3e
movzx ecx, word [0x1400a759c]
call fcn.140035aa0
mov word [rbp - 0x64], ax
xor eax, eax
mov word [rbp - 0x62], ax
mov eax, edi
mov rdx, rdi
mov r8d, 0x133
lea ecx, [r8 + rax]
xor word [rsp + rdx*2 + 0x20], cx
inc eax
movsxd rdx, eax
cmp rdx, 0x3f
jb 0x140036d72
mov word [rbp - 0x62], di
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.14004aac0
nop
mov rax, qword [rbp - 0x40]
cmp rax, 8
jb 0x140036e10
inc rax
mov rcx, qword [rbp - 0x58]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140036dc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140036e0b
test byte [rbp - 0x58], 0x1f
je 0x140036ddb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140036deb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140036dfb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140036e08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140054a50
mov rax, rbx
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret