Function at 0x140024590
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x960], rax
xor r12d, r12d
mov rbx, rcx
mov rdx, rcx
lea rcx, [rbp + 0x312]
mov r14, r8
mov dword [rbp + 0x450], 0xa000d
mov word [rbp + reloc.mfc120u.dll_Ordinal_1108], r12w
mov dword [rsp + 0x30], 0xcc
mov byte [rsp + 0x58], r12b
lea edi, [r12 + 0xa]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call fcn.14002ae90
lea rcx, [rsp + 0x40]
mov r8, rax
mov rbx, rax
call fcn.140017670
mov word [rbp + 0x90], ax
test rbx, rbx
je 0x140024638
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140024628
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
movzx eax, word [rbp + 0x90]
mov qword [rsp + 0xab8], rsi
mov qword [rsp + 0xa78], r13
mov qword [rsp + Ordinal_2673], r15
test ax, ax
jne 0x140024bad
lea rcx, [rsp + 0x40]
call fcn.140017a20
test ax, ax
jne 0x140024bad
lea rcx, [rsp + 0x40]
mov edx, 0x5858
call fcn.14001be70
test ax, ax
jne 0x140024bad
mov rcx, r12
lea r13, [0x140000000]
nop
movzx eax, byte [rcx + r13 + 0x342b8]
inc rcx
mov byte [rbp + rcx + 0x65f], al
test al, al
jne 0x140024690
movzx eax, byte [rbp + 0x660]
lea r8, [rbp + 0x660]
lea rdx, [rbp + 0x760]
test al, al
je 0x140024701
mov r9, qword [0x14003d2f8]
cmp al, 0x20
jae 0x1400246d9
movzx eax, al
movzx ecx, word [r13 + rax*2 + 0x31200]
jmp 0x1400246ee
cmp al, 0x80
jae 0x1400246e2
movzx ecx, al
jmp 0x1400246ee
movzx eax, al
movzx ecx, word [r9 + rax*2 - 0x100]
movzx eax, byte [r8 + 1]
inc r8
mov word [rdx], cx
add rdx, 2
test al, al
jne 0x1400246c7
mov word [rdx], r12w
lea rax, [rbp + 0x760]
mov edx, r12d
nop
cmp byte [rax], r12b
jne 0x14002471b
cmp byte [rax + 1], r12b
je 0x140024723
add rax, 2
inc edx
jmp 0x140024710
mov rax, qword [rsp + 0x50]
mov ecx, 5
mov r8d, 0x100
mov word [rax], cx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x760]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov ecx, 0x802
mov word [rax + 0x20], r12w
mov rax, qword [rsp + 0x50]
add dx, dx
mov word [rax + 0x22], r8w
mov rax, qword [rsp + 0x50]
mov word [rax + 0x24], cx
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x460]
mov word [rax + 0x32], dx
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x50]
mov word [rax + 0x30], r8w
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
jne 0x140024b59
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x460]
cmp byte [rcx], r12b
jne 0x1400247e3
cmp byte [rcx + 1], r12b
je 0x1400247f0
add rcx, 2
jmp 0x1400247d8
movzx eax, byte [rdx]
lea rdx, [rdx + 2]
add rcx, 2
mov byte [rcx - 2], al
movzx eax, byte [rdx - 1]
mov byte [rcx - 1], al
cmp byte [rdx], r12b
jne 0x1400247f0
cmp byte [rdx + 1], r12b
jne 0x1400247f0
mov word [rcx], r12w
lea rax, [rbp + 0x460]
mov edx, r12d
nop
cmp byte [rax], r12b
jne 0x14002482b
cmp byte [rax + 1], r12b
je 0x140024833
add rax, 2
inc edx
jmp 0x140024820
movzx ecx, word [rbp + 0x460]
add dx, dx
lea rax, [rbp + 0x460]
mov r15d, 0x5f
test cx, cx
je 0x14002486e
nop
cmp cx, 0x2d
jne 0x14002485a
mov word [rax], r15w
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x140024850
movzx ecx, word [rbp + 0x460]
movzx esi, r12w
and si, 0x10
je 0x14002487e
add dx, 2
jmp 0x1400248a2
lea rax, [rbp + 0x460]
test cx, cx
je 0x1400248a2
nop word [rax + rax]
xor byte [rax], 0xff
xor byte [rax + 1], 0xff
cmp word [rax + 2], r12w
lea rax, [rax + 2]
jne 0x140024890
mov rcx, qword [r14]
movzx r8d, dx
lea r9, [rsp + 0x34]
lea rdx, [rbp + 0x460]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400248f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x1400248db
mov eax, eax
mov ecx, dword [r13 + rax*4 + 0x310a0]
jmp 0x1400248e0
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], r12b
mov rax, qword [rsp + 0x50]
mov ebx, 6
mov word [rax], bx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x460]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov ecx, 0x100
mov word [rax + 0x20], cx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
jne 0x140024b59
nop
inc di
cmp di, 0x64
jbe 0x14002496d
movzx edi, r12w
lea rdx, [0x140033b50]
xor ecx, ecx
movzx r8d, di
call qword [0x140041aa8]
test ax, ax
jne 0x140024bb2
test r12b, 8
jne 0x1400249d7
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x460]
nop dword [rax]
cmp byte [rcx], r12b
jne 0x1400249ab
cmp byte [rcx + 1], r12b
je 0x1400249b1
add rcx, 2
jmp 0x1400249a0
movzx eax, byte [rdx]
test al, al
jne 0x1400249be
cmp byte [rdx + 1], r12b
je 0x1400249d1
mov byte [rcx], al
movzx eax, byte [rdx + 1]
add rcx, 2
mov byte [rcx - 1], al
add rdx, 2
jmp 0x1400249b1
mov word [rcx], r12w
jmp 0x140024a18
lea rdx, [rsp + 0x30]
lea rax, [rbp + 0x460]
cmp byte [rax], r12b
jne 0x1400249ee
cmp byte [rax + 1], r12b
je 0x1400249f4
add rax, 2
jmp 0x1400249e3
movzx ecx, byte [rdx]
test cl, cl
jne 0x140024a01
cmp byte [rdx + 1], r12b
je 0x140024a14
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
add rax, 2
mov byte [rax - 1], cl
add rdx, 2
jmp 0x1400249f4
mov word [rax], r12w
lea rax, [rbp + 0x460]
mov edx, r12d
cmp byte [rax], r12b
jne 0x140024a2d
cmp byte [rax + 1], r12b
je 0x140024a35
add rax, 2
inc edx
jmp 0x140024a22
movzx ecx, word [rbp + 0x460]
add dx, dx
lea rax, [rbp + 0x460]
test cx, cx
je 0x140024a6e
nop dword [rax + rax]
cmp cx, 0x2d
jne 0x140024a5a
mov word [rax], r15w
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x140024a50
movzx ecx, word [rbp + 0x460]
test si, si
je 0x140024a79
add dx, 2
jmp 0x140024aa2
lea rax, [rbp + 0x460]
test cx, cx
je 0x140024aa2
nop word [rax + rax]
xor byte [rax], 0xff
xor byte [rax + 1], 0xff
cmp word [rax + 2], r12w
lea rax, [rax + 2]
jne 0x140024a90
mov rcx, qword [r14]
movzx r8d, dx
lea r9, [rsp + 0x34]
lea rdx, [rbp + 0x460]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140024af7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024adb
mov eax, eax
mov ecx, dword [r13 + rax*4 + 0x310a0]
jmp 0x140024ae0
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], r12b
mov rax, qword [rsp + 0x50]
mov word [rax], bx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x460]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov ecx, 0x100
mov word [rax + 0x20], cx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
je 0x140024960
mov eax, 3
mov word [rdx], ax
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rsp + 0x50]
mov qword [rdx + 8], rcx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, qword [rsp + 0x50]
movzx edx, word [rcx]
mov word [rbp + 0x90], dx
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r12w
jmp 0x140024bb5
mov ebx, 0x64
movzx eax, bx
mov r15, qword [rsp + 0xa70]
mov r13, qword [rsp + 0xa78]
mov rsi, qword [rsp + 0xab8]
mov rcx, qword [rbp + 0x960]
xor rcx, rsp
call fcn.14002c960
add rsp, 0xa80
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret