Function at 0x18005b880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1800b8050]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor r14d, r14d
movups xmm0, xmmword [0x1800b9018]
movups xmmword [rsp + 0x60], xmm0
lea rdx, str.Config
lea rcx, [rsp + 0x60]
call fcn.18003bff0
xorps xmm0, xmm0
lea rax, [0x1800a7180]
mov qword [rsp + 0x60], rax
lea rax, [0x1800a7190]
mov qword [rsp + 0x68], rax
lea rax, [0x1800a71a0]
mov qword [rsp + 0x70], rax
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r14
lea ecx, [r14 + 0x18]
call fcn.1800637d0
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
lea rbx, [rax + 0x18]
mov qword [rbp - 0x28], rbx
lea r8d, [r14 + 0x18]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180069700
mov qword [rbp - 0x30], rbx
lea rax, str.Legit
mov qword [rbp + 0x20], rax
lea rax, str.Smei_Rage
mov qword [rbp + 0x28], rax
lea rax, str.Rage
mov qword [rbp + 0x30], rax
mov dword [rsp + 0x20], 3
lea r9, [rbp + 0x20]
lea rdx, [0x1800b8fc0]
lea rcx, str.Select_Config
call fcn.180040aa0
movsxd rdx, dword [0x1800b8fc0]
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
sub rax, rcx
sar rax, 3
cmp rax, rdx
jbe 0x18005c244
mov rdx, qword [rcx + rdx*8]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x18005b9b3
lea rcx, [rbp]
call fcn.1800090e0
nop
mov dword [rbp - 0x80], 0x42c80000
mov dword [rbp - 0x7c], 0x41a00000
lea rdx, [rbp - 0x80]
lea rcx, str.Save_Config
call fcn.18003c860
lea r15, str.C:Mordhau
lea r12, [0x1800b9048]
test al, al
je 0x18005bcab
call fcn.180062cf0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xa
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.180057620
nop
lea rcx, [rsp + 0x40]
call fcn.1800580b0
movzx edi, al
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18005ba6f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005ba6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c24a
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76b0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
test dil, dil
jne 0x18005bb25
call fcn.180062cf0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xa
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x78]
call fcn.180057620
nop
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x78]
call fcn.1800581c0
cmp dword [rsp + 0x60], 0
jne 0x18005c250
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x18005bb13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bb0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c266
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76b0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
mov r8d, 0x104
lea rdx, [rbp + 0x40]
mov rcx, qword [0x1800ba548]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rbp]
lea rcx, [rsp + 0x40]
call fcn.180061b80
mov rdi, rax
mov rsi, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x18005bb5b
mov rdi, qword [rax]
call fcn.180062cf0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rsi
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.180057620
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x18005bbb8
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bbb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c26c
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76d0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.180061380
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x18005bc4f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bc4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c272
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76b0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
cmp rdi, 0xffffffffffffffff
jne 0x18005c00f
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x18005bcab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bca6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c238
call fcn.18006380c
movss xmm1, dword [0x1800a7670]
xorps xmm0, xmm0
call fcn.18001a280
mov dword [rbp - 0x80], 0x42c80000
mov dword [rbp - 0x7c], 0x41a00000
lea rdx, [rbp - 0x80]
lea rcx, str.Load_Config
call fcn.18003c860
test al, al
je 0x18005bfa6
call fcn.180062cf0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xa
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.180057620
nop
lea rcx, [rbp - 0x58]
call fcn.1800580b0
movzx edi, al
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x18005bd51
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bd4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c278
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76b0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r14w
test dil, dil
jne 0x18005be0b
call fcn.180062cf0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xa
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.180057620
nop
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1800581c0
cmp dword [rsp + 0x60], 0
jne 0x18005c27e
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18005bdf7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bdf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c295
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76b0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
mov r8d, 0x104
lea rdx, [rbp + 0x40]
mov rcx, qword [0x1800ba548]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rbp]
lea rcx, [rbp - 0x58]
call fcn.180061b80
mov rdi, rax
mov rsi, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x18005be40
mov rdi, qword [rax]
call fcn.180062cf0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rsi
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rbp - 0x78]
call fcn.180057620
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x18005be9b
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005be96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c29b
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76d0]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x40]
call fcn.180061380
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18005bf36
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bf31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c2a1
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76b0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
cmp rdi, 0xffffffffffffffff
jne 0x18005c080
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x18005bf94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bf8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c23e
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76b0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
mov rax, qword [0x1800ba518]
mov rax, qword [rax + 0x3230]
cmp byte [rax + 0x93], 0
jne 0x18005bfcf
mov eax, dword [rax + 0x18c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.18003f490
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, 0x1b
lea rdx, str.Config_Location:_C:Mordhau
lea rcx, [rbp - 0x20]
call fcn.1800090e0
nop
mov eax, dword [0x1800b8fc0]
test eax, eax
jne 0x18005c0f1
lea rdx, str.Legit.idb
jmp 0x18005c106
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
mov r8d, pe_nt_image_headers64
lea rdx, [0x1800b8ec0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x18005bcab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bca6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c238
jmp 0x18005bca6
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
mov r8d, pe_nt_image_headers64
lea rdx, [0x1800b8ec0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x18005bf94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bf8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c23e
jmp 0x18005bf8f
lea rcx, str.Smei_Rage.idb
lea rdx, str.Rage.idb
cmp eax, 1
cmove rdx, rcx
inc rbx
cmp byte [rdx + rbx], 0
jne 0x18005c106
mov r8, rbx
lea rcx, [rbp - 0x20]
call fcn.180009040
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
movups xmm0, xmmword [0x1800b9018]
movups xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call fcn.18003bff0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x18005c17b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c176
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c2a7
call fcn.18006380c
movdqa xmm0, xmmword [0x1800a76d0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x18005c1c8
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c1c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c2ad
call fcn.18006380c
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x18005c202
mov rdx, qword [rbp - 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c1fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c232
call fcn.18006380c
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.180063690
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18006ffc8
nop
call fcn.18006ffc8
nop
call fcn.18006ffc8
nop
call fcn.1800614b0
nop
call fcn.18006ffc8
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x60]
lea rcx, str.create_directories
call fcn.180058050
nop
call fcn.18006ffc8
nop
call fcn.18006ffc8
int3
call fcn.18006ffc8
nop
call fcn.18006ffc8
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, str.create_directories
call fcn.180058050
nop
call fcn.18006ffc8
nop
call fcn.18006ffc8
int3
call fcn.18006ffc8
nop
call fcn.18006ffc8
nop
call fcn.18006ffc8
int3