Function at 0x18000bd30
Capabilities:
Contain obfuscated stackstrings
Read file on windows
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xffd0]
mov eax, 0x100d0
call fcn.18001eed0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10100], rbx
mov qword [rsp + 0x10110], rsi
mov rax, qword [0x180055228]
xor rax, rsp
mov qword [rbp + 0xffc0], rax
mov rbx, rdx
xor r12d, r12d
xor eax, eax
lock cmpxchg dword [section..HKT], r12d
jne 0x18000c21c
cmp qword [0x180055c00], 0xffffffffffffffff
je 0x18000c21c
test r8d, r8d
je 0x18000c21c
lea r14, [0x18005d030]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [r14 + rax], r12b
jne 0x18000bdb4
test rax, rax
je 0x18000c21c
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], r12b
test r8d, r8d
je 0x18000bdfc
mov edi, r8d
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.1800184c0
add rbx, 0x10
sub rdi, 1
jne 0x18000bde1
xor eax, eax
lock cmpxchg dword [0x18005d018], r12d
jne 0x18000be5c
lea rdx, [0x18005dc30]
mov r9, rsi
inc r9
cmp byte [rdx + r9], 0
jne 0x18000be13
test r9, r9
je 0x18000be5c
cmp byte [0x18005dc30], 0
cmove r9, r12
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.180010f40
cmp rax, 0xffffffffffffffff
je 0x18000be5c
mov r14d, 1
xchg dword [section..HKT], r14d
lea rcx, [rsp + 0x40]
call fcn.180018d80
jmp 0x18000c21c
cmp byte [0x18005d030], 0
jne 0x18000be6a
mov r9, r12
jmp 0x18000be7a
mov r9, rsi
nop dword [rax]
inc r9
cmp byte [r14 + r9], 0
jne 0x18000be70
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.180010f40
mov r14d, 1
cmp rax, 0xffffffffffffffff
je 0x18000c071
mov r9d, r14d
mov r8, rax
lea rdx, [0x18004c3e8]
lea rcx, [rsp + 0x40]
call fcn.180010f40
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18000c071
mov rdx, qword [rsp + 0x50]
cmp rdx, r14
jb 0x18000c071
dec rdx
cmp rdx, 0xffffffffffffffff
cmova rdx, rsi
lea rbx, [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, rdi
add rbx, rdx
nop
cmp byte [rbx], 0x7d
sete al
test al, al
je 0x18000bf13
movzx eax, byte [rbx]
cmp al, byte [0x18004c3ec]
jne 0x18000bf0a
mov eax, r12d
jmp 0x18000bf0f
sbb eax, eax
or eax, r14d
test eax, eax
je 0x18000bf2b
lea rcx, [rsp + 0x40]
call fcn.1800187c0
cmp rbx, rax
je 0x18000c076
dec rbx
jmp 0x18000bef0
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, rdi
sub rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x18000c076
sub rbx, r15
inc rbx
mov r9, rbx
mov r8, r15
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.18000d8e0
nop
mov rcx, qword [0x180055c00]
cmp rcx, 0xffffffffffffffff
je 0x18000c067
mov rax, qword [0x180057ae0]
test rax, rax
jne 0x18000c011
mov dword [rbp - 0x68], 0x65004b
mov dword [rbp - 0x64], 0x6e0072
mov dword [rbp - 0x60], 0x6c0065
mov dword [rbp - 0x5c], 0x320033
mov dword [rbp - 0x58], 0x64002e
mov dword [rbp - 0x54], 0x6c006c
mov word [rbp - 0x50], r12w
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180057ad8], rax
test rax, rax
je 0x18000bffe
mov dword [rbp - 0x78], 0x46746553
mov dword [rbp - 0x74], 0x50656c69
mov dword [rbp - 0x70], 0x746e696f
mov word [rbp - 0x6c], 0x7265
mov byte [rbp - 0x6a], 0
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180057ae0], rax
jmp 0x18000c005
mov rax, qword [0x180057ae0]
test rax, rax
je 0x18000c01b
mov rcx, qword [0x180055c00]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call rax
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x60], r12d
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x78]
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
lea rcx, [rsp + 0x68]
call fcn.180018d80
mov rdi, qword [rsp + 0x40]
lea rdx, [0x18005e030]
mov r9, rsi
inc r9
cmp byte [rdx + r9], 0
jne 0x18000c080
test r9, r9
je 0x18000c1b8
cmp byte [0x18005e030], 0
cmove r9, r12
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.180010f40
cmp rax, 0xffffffffffffffff
je 0x18000c1b3
mov rcx, qword [0x180055c00]
cmp rcx, 0xffffffffffffffff
je 0x18000c1b3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor bl, bl
mov rcx, qword [0x180055bf8]
cmp rcx, 0xffffffffffffffff
je 0x18000c177
mov dword [rsp + 0x38], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x38]
mov r8d, 0x10000
lea rdx, [rbp - 0x40]
mov rcx, qword [0x180055bf8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000c177
mov r8d, dword [rsp + 0x38]
test r8d, r8d
je 0x18000c177
mov dword [rsp + 0x3c], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x3c]
lea rdx, [rbp - 0x40]
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c166
movzx ebx, bl
cmp dword [rsp + 0x3c], 0
cmova ebx, r14d
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test bl, bl
jne 0x18000c1b3
mov dword [rsp + 0x64], r12d
lea rdx, [0x18005ec30]
inc rsi
cmp byte [rdx + rsi], 0
jne 0x18000c183
mov r8, rsi
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x64]
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180055c00]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rdi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x18000c21c
inc rax
cmp rax, 0xffffffffffffffff
jbe 0x18000c1d2
call fcn.180022c44
int3
cmp rax, 0x1000
jb 0x18000c214
test byte [rsp + 0x40], 0x1f
je 0x18000c1e7
call fcn.180022c44
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x18000c1f6
call fcn.180022c44
int3
sub rdi, rax
cmp rdi, 8
jae 0x18000c205
call fcn.180022c44
int3
cmp rdi, 0x27
jbe 0x18000c211
call fcn.180022c44
int3
mov rdi, rax
mov rcx, rdi
call fcn.18001e2c4
mov rcx, qword [rbp + 0xffc0]
xor rcx, rsp
call fcn.18001e280
lea r11, [rsp + 0x100d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret