Function at 0x140031174
Capabilities:
Encode data using xor
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
mov ebx, 0x208
mov ecx, ebx
call fcn.14000a0c8
mov ecx, ebx
mov r13, rax
call fcn.14000a0c8
mov rdx, qword [0x14004cc38]
xor ecx, ecx
mov rbx, qword [0x14004cc58]
mov rdi, rax
call rdx
mov rcx, rax
mov r8d, 0x104
mov rdx, r13
call rbx
mov rdx, rdi
mov rcx, r13
sub rdx, r13
xor r15d, r15d
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400311df
lea rcx, [rbp + 0x160]
mov word [rbp + 0x160], 0x5a12
call fcn.140001d2c
mov rcx, qword [rax]
movsx edx, byte [rcx]
mov rcx, rdi
call fcn.14000b210
or rsi, 0xffffffffffffffff
mov rbx, rax
mov rcx, rsi
lea r14, [rax + 2]
inc rcx
cmp word [r14 + rcx*2], r15w
jne 0x140031220
inc rcx
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14000a0c8
mov rdx, r14
sub rax, r14
movzx ecx, word [rdx]
mov word [rax + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140031247
xorps xmm0, xmm0
mov qword [rbp - 8], r15
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp], r15
mov r8, rsi
inc r8
cmp word [r14 + r8*2], r15w
jne 0x140031269
mov rdx, r14
lea rcx, [rbp - 0x18]
call fcn.14000686c
mov rax, qword [rbp - 8]
mov ecx, 0x18
mov word [rbx + rax*2 - 6], r15w
call fcn.14000a07c
mov r8, rax
lea rcx, [0x14004accc]
mov edx, 5
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
call fcn.1400307c0
xorps xmm0, xmm0
mov qword [rbp - 0x48], r15
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x40], r15
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x1400312c4
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400018e0
cmp qword [rbp - 0x40], 0x10
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x58]
mov qword [rsp + 0x78], r15
cmovae r8, qword [rbp - 0x58]
xorps xmm0, xmm0
add r8, qword [rbp - 0x48]
mov r12d, 7
cmp qword [rbp - 0x40], 0x10
movups xmmword [rsp + 0x68], xmm0
cmovae rdx, qword [rbp - 0x58]
mov qword [rbp - 0x80], r15
cmp rdx, r8
jne 0x140031324
mov eax, r12d
mov word [rsp + 0x68], r15w
mov qword [rbp - 0x80], rax
jmp 0x140031338
mov r9, r8
lea rcx, [rsp + 0x68]
sub r9, rdx
call fcn.140006d64
mov rax, qword [rbp - 0x80]
cmp rax, 8
mov qword [rbp + 0x58], r15
lea rdx, [rsp + 0x68]
mov qword [rbp + 0x60], r15
cmovae rdx, qword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov r8, rsi
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140031359
lea rcx, [rbp + 0x48]
call fcn.14000686c
mov rdx, qword [rbp - 0x80]
mov r8d, 0x27
lea r9d, [r8 - 8]
cmp rdx, 8
jb 0x1400313b5
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400313b0
mov rcx, qword [rcx - 8]
add rdx, r8
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r9
ja 0x140031d75
call fcn.14000a0c0
mov rdx, rsi
inc rdx
cmp word [r14 + rdx*2], r15w
jne 0x1400313b8
cmp rdx, qword [rbp]
ja 0x1400313f3
cmp qword [rbp], 8
lea rbx, [rdx + rdx]
mov qword [rbp - 8], rdx
lea rdi, [rbp - 0x18]
cmovae rdi, qword [rbp - 0x18]
mov r8, rbx
mov rcx, rdi
mov rdx, r14
call fcn.14000c320
mov word [rdi + rbx], r15w
jmp 0x1400313ff
mov r9, r14
lea rcx, [rbp - 0x18]
call fcn.140006974
cmp qword [rbp + 0x60], 8
lea rdx, [rbp + 0x48]
mov r8, qword [rbp + 0x58]
lea rcx, [rbp - 0x18]
cmovae rdx, qword [rbp + 0x48]
call fcn.1400067f0
mov ecx, 0x18
call fcn.14000a07c
mov r8, rax
lea rcx, [0x14004ace0]
mov edx, 0x1a
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
call fcn.1400307c0
xorps xmm0, xmm0
mov qword [rbp - 0x68], r15
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x60], r15
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x140031455
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.1400018e0
lea rcx, [rbp + 0x160]
mov word [rbp + 0x160], 0x5a3a
mov ebx, 0x5a
call fcn.140001d2c
mov r9, qword [rbp - 0x60]
lea rdx, [rbp - 0x78]
mov r8, qword [rbp - 0x78]
cmp r9, 0x10
mov rax, qword [rax]
cmovae rdx, r8
mov cl, byte [rax]
cmp byte [rdx], cl
jne 0x140031b55
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x37002d
mov dword [rsp + 0x54], 0x610006
mov dword [rsp + 0x58], 0x90064
mov dword [rsp + 0x5c], 0x74004d
mov word [rsp + 0x60], bx
call fcn.14000658c
xorps xmm0, xmm0
mov r8, rsi
mov rdx, qword [rax]
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], r15
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400314e9
lea rcx, [rbp + 0x28]
call fcn.14000686c
mov ecx, 0x200
call fcn.14000a0c8
mov rbx, qword [0x14004cc50]
lea rcx, [rsp + 0x50]
mov rdi, rax
mov dword [rsp + 0x50], 0x1f001a
mov r14d, 0x1f
mov dword [rsp + 0x54], 0x11002f
lea eax, [r14 + 0x2c]
mov word [rsp + 0x58], ax
call fcn.140006510
mov r8d, 0x100
mov rdx, rdi
mov rcx, qword [rax]
call rbx
xorps xmm0, xmm0
mov qword [rbp + 0x78], r15
movdqu xmmword [rbp + 0x68], xmm0
mov qword [rsp + 0x78], r15
mov r8, rsi
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp - 0x80], r15
inc r8
cmp word [rdi + r8*2], r15w
jne 0x140031564
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14000686c
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.14002c134
mov rdi, qword [rbp + 0x68]
mov r15, qword [rbp + 0x70]
cmp rdi, r15
je 0x1400318a8
mov dword [rbp + 0x160], 0x5a0060
lea rbx, str.k_n_af_CaPpCEI
lea rcx, [rbp + 0x160]
call fcn.140006710
cmp qword [rdi + 0x18], 8
mov rcx, qword [rax]
movzx edx, word [rcx]
mov rcx, rdi
jb 0x1400315ca
mov rcx, qword [rdi]
call fcn.14000b210
cmp qword [rdi + 0x18], 8
mov rcx, rdi
mov rax, qword [0x14004cc48]
jb 0x1400315e3
mov rcx, qword [rdi]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 5
call rax
mov r14, rax
cmp rax, rsi
je 0x140031695
xor r8d, r8d
mov rcx, r8
movabs rax, 0x27350b88127350b9
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
lea rdx, [0x140042b40]
shr rcx, 8
imul rax, rcx, 0x1bc
mov rcx, r8
sub rcx, rax
mov al, byte [r8 + rbx]
xor al, byte [rcx + rdx]
mov byte [r8 + rbx], al
inc r8
cmp r8, 0x71
jb 0x140031615
mov rbx, qword [0x14004cc60]
mov ecx, 4
call fcn.14000a07c
and qword [rsp + 0x20], 0
lea rdx, str.k_n_af_CaPpCEI
mov r9, rax
mov r8d, 0x71
mov rcx, r14
call rbx
test eax, eax
jne 0x14003174a
lea rbx, str.k_n_af_CaPpCEI
add rdi, 0x20
cmp rdi, r15
jne 0x1400315ab
xor r15d, r15d
lea ebx, [r15 + 0x27]
mov r14d, 0x1f
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x37002d
mov dword [rsp + 0x54], 0x610006
mov dword [rsp + 0x58], 0x90064
mov dword [rsp + 0x5c], 0x56004d
call fcn.140006494
xorps xmm0, xmm0
mov r8, rsi
mov rdx, qword [rax]
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r15
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400316ee
lea rcx, [rbp + 8]
call fcn.14000686c
cmp qword [rbp - 0x60], 0x10
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x78], r15
cmovae r8, qword [rbp - 0x78]
xorps xmm0, xmm0
add r8, qword [rbp - 0x68]
cmp qword [rbp - 0x60], 0x10
movups xmmword [rsp + 0x68], xmm0
cmovae rdx, qword [rbp - 0x78]
mov qword [rbp - 0x80], r15
cmp rdx, r8
jne 0x1400318b4
mov qword [rbp - 0x80], r12
mov word [rsp + 0x68], r15w
jmp 0x1400318c8
mov rcx, r14
call qword [0x14004cc08]
mov ebx, 0x27
mov dword [rsp + 0x50], 0x2a0060
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x54], 0x270006
lea eax, [rbx + 0x24]
mov word [rsp + 0x58], ax
call fcn.140006510
mov r8, qword [rdi + 0x10]
mov rcx, rsi
xor r15d, r15d
mov rdx, qword [rax]
inc rcx
cmp word [rdx + rcx*2], r15w
jne 0x140031787
movabs rax, 0x7ffffffffffffffe
sub rax, r8
cmp rax, rcx
jb 0x140031d7b
cmp qword [rdi + 0x18], 8
mov r9, rdi
jb 0x1400317b4
mov r9, qword [rdi]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x98]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
call fcn.140006c4c
cmp qword [rbp + 0xb0], 8
lea rdx, [rbp + 0x98]
xorps xmm0, xmm0
mov qword [rsp + 0x78], r15
cmovae rdx, qword [rbp + 0x98]
mov r8, rsi
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp - 0x80], r15
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400317fa
lea rcx, [rsp + 0x68]
call fcn.14000686c
lea rcx, [rbp + 0x98]
call fcn.14000678c
cmp qword [rbp - 0x80], 8
lea rdx, [rsp + 0x68]
cmovae rdx, qword [rsp + 0x68]
cmp qword [rdi + 0x18], 8
jb 0x140031834
mov rdi, qword [rdi]
mov rcx, rdi
call fcn.140013b7c
cmp qword [rbp - 0x80], 8
lea rdx, [rsp + 0x68]
mov r8, qword [rsp + 0x78]
lea rcx, [rbp + 0x28]
cmovae rdx, qword [rsp + 0x68]
call fcn.1400067f0
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400316a9
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
mov r14d, 0x1f
cmp rdx, 0x1000
jb 0x14003189e
mov rcx, qword [rcx - 8]
add rdx, rbx
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140031d6f
call fcn.14000a0c0
jmp 0x1400316af
xor r15d, r15d
lea ebx, [r15 + 0x27]
jmp 0x1400316af
mov r9, r8
lea rcx, [rsp + 0x68]
sub r9, rdx
call fcn.140006d64
mov r12, qword [rbp - 0x80]
cmp r12, 8
lea rdx, [rsp + 0x68]
mov r8, rsi
cmovae rdx, qword [rsp + 0x68]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400318da
lea rcx, [rbp + 8]
call fcn.1400067f0
mov rdx, qword [rbp - 0x80]
mov r12d, 0x1000
cmp rdx, 8
jb 0x14003192e
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, r12
jb 0x140031929
mov rcx, qword [rcx - 8]
add rdx, rbx
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140031d75
call fcn.14000a0c0
xorps xmm0, xmm0
mov qword [rbp - 0x28], r15
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x20], r15
mov r8, rsi
inc r8
cmp word [r13 + r8*2], r15w
jne 0x140031940
mov rdx, r13
lea rcx, [rbp - 0x38]
call fcn.14000686c
mov r14, qword [rbp - 0x20]
lea rax, [rbp - 0x38]
mov rdi, qword [rbp - 0x38]
cmp r14, 8
mov r8, qword [rbp - 0x28]
cmovae rax, rdi
test r8, r8
je 0x140031a35
mov r13d, 0x20
mov rcx, r8
mov rdx, rax
mov rbx, r15
cmp word [rax], r13w
je 0x1400319a0
cmp rcx, 1
je 0x1400319a3
add rdx, 2
dec rcx
cmp word [rdx], r13w
jne 0x14003198d
mov rbx, rdx
test rbx, rbx
je 0x140031a35
sub rbx, rax
sar rbx, 1
cmp rbx, rsi
je 0x140031a35
mov dword [rbp + 0x160], 0x5a0071
lea rcx, [rbp + 0x160]
call fcn.140006710
cmp r14, 8
mov rcx, qword [rax]
lea rax, [rbp - 0x38]
cmovae rax, rdi
movzx edx, word [rcx]
mov word [rax + rbx*2], dx
lea rdx, [rbp - 0x38]
mov r14, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x38]
cmp r14, 8
mov r8, qword [rbp - 0x28]
cmovae rdx, rdi
test r8, r8
je 0x140031a35
mov rax, r8
mov rcx, rdx
mov rbx, r15
cmp word [rdx], r13w
je 0x140031a22
cmp rax, 1
je 0x140031a25
add rcx, 2
dec rax
cmp word [rcx], r13w
jne 0x140031a0f
mov rbx, rcx
test rbx, rbx
je 0x140031a35
sub rbx, rdx
sar rbx, 1
cmp rbx, rsi
jne 0x1400319c1
cmp r14, 8
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 8]
cmovae rdx, rdi
call fcn.1400067f0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x7a006c
mov dword [rsp + 0x54], 0x61001e
mov dword [rsp + 0x58], 0x1e002d
mov dword [rsp + 0x5c], 0x56001d
call fcn.140006494
mov r8, rsi
mov rdx, qword [rax]
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140031a7a
lea rcx, [rbp + 8]
call fcn.1400067f0
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x5a006c
call fcn.140006710
mov rdx, qword [rax]
inc rsi
cmp word [rdx + rsi*2], r15w
jne 0x140031aa6
mov r8, rsi
lea rcx, [rbp + 0x28]
call fcn.1400067f0
mov ecx, 0x3e8
call qword [0x14004cc10]
mov esi, 0x64
lea rcx, [rbp + 0xc4]
mov r8d, esi
xor edx, edx
call fcn.14000cb30
xorps xmm0, xmm0
mov word [rbp + 0x160], 0x5a3a
xor eax, eax
lea edi, [rsi + 4]
lea rcx, [rbp + 0x160]
mov qword [rbp + 0x90], rax
movups xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0xc0], edi
call fcn.140001d2c
cmp qword [rbp - 0x60], 0x10
lea rdx, [rbp - 0x78]
cmovae rdx, qword [rbp - 0x78]
mov rax, qword [rax]
mov cl, byte [rax]
cmp byte [rdx], cl
je 0x140031bc3
lea rcx, [rbp - 0x38]
call fcn.14000678c
lea rcx, [rbp + 8]
call fcn.14000678c
lea rcx, [rbp + 0x68]
call fcn.140006608
lea rcx, [rbp + 0x28]
call fcn.14000678c
mov r9, qword [rbp - 0x60]
mov r8, qword [rbp - 0x78]
cmp r9, 0x10
jb 0x140031b8c
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140031b84
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031d75
mov rcx, r8
call fcn.14000a0c0
mov ebx, 0xf
mov qword [rbp - 0x68], r15
lea rcx, [rbp + 0x48]
mov qword [rbp - 0x60], rbx
mov byte [rbp - 0x78], r15b
call fcn.14000678c
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140031d39
inc rdx
cmp rdx, 0x1000
jmp 0x140031d16
cmp qword [rbp + 0x40], 8
lea rcx, [rbp + 0x80]
mov rax, qword [0x14004cc40]
lea rdx, [rbp + 0x28]
cmovae rdx, qword [rbp + 0x28]
mov ebx, 0x8000000
mov qword [rsp + 0x48], rcx
xor r9d, r9d
lea rcx, [rbp + 0xc0]
xor r8d, r8d
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
call rax
mov ecx, 0x1388
call qword [0x14004cc10]
mov r8, rsi
lea rcx, [rbp + 0xc4]
xor edx, edx
call fcn.14000cb30
xor eax, eax
mov dword [rbp + 0xc0], edi
cmp qword [rbp + 0x20], 8
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x48], rcx
lea rdx, [rbp + 8]
cmovae rdx, qword [rbp + 8]
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov qword [rbp + 0x90], rax
xor ecx, ecx
mov rax, qword [0x14004cc40]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r15d
movups xmmword [rbp + 0x80], xmm0
call rax
lea rcx, [rbp - 0x38]
call fcn.14000678c
lea rcx, [rbp + 8]
call fcn.14000678c
lea rcx, [rbp + 0x68]
call fcn.140006608
lea rcx, [rbp + 0x28]
call fcn.14000678c
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140031cec
mov rcx, qword [rbp - 0x78]
inc rdx
mov rax, rcx
cmp rdx, r12
jb 0x140031ce7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031d75
call fcn.14000a0c0
mov ebx, 0xf
mov qword [rbp - 0x68], r15
lea rcx, [rbp + 0x48]
mov qword [rbp - 0x60], rbx
mov byte [rbp - 0x78], r15b
call fcn.14000678c
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140031d39
inc rdx
cmp rdx, r12
mov rcx, qword [rbp - 0x58]
mov rax, rcx
jb 0x140031d34
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031d75
call fcn.14000a0c0
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x58], r15b
call fcn.14000678c
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140010b94
int3
call fcn.140010b94
int3
call fcn.1400012e8
int3