Function at 0x180011050
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb78]
sub rsp, 0xc78
mov edi, r8d
mov r12, rcx
mov esi, r8d
lea r13d, [r8 - 0xf]
lea r15, [0x180000000]
xor r9d, r9d
cmp r8d, r13d
jbe 0x180011110
lea edi, [r9 + 0x30]
lea r8d, [r9 + 0x6d]
lea r10d, [r9 + 0x32]
lea r14d, [r9 + 0x73]
lea r11d, [r9 + 0x63]
mov ebx, dword [rbp + 0xbd0]
lea eax, [rsi - 0x7a]
cmp eax, 0x22
ja case.0x1800110cc.137
movzx eax, byte [r15 + rax + 0x11ac8]
mov ecx, dword [r15 + rax*4 + 0x11a88]
add rcx, r15
jmp rcx
mov dword [rbp - 0x80], 0x310072
jmp case.0x1800110cc.137
mov r8d, 3
lea rdx, [0x180064068]
lea rcx, [rbp - 0x38]
call fcn.1800470dc
xor r9d, r9d
lea r8d, [r9 + 0x6d]
lea r10d, [r9 + 0x32]
lea r11d, [r9 + 0x63]
mov rdx, qword [rbp + 0xbc8]
dec esi
cmp esi, r13d
ja 0x1800110b0
mov edi, dword [rbp + 0xbd0]
lea ebx, [rdi + 0x10]
mov dword [rbp + 0xbd8], ebx
cmp edi, ebx
jae case.0x18001115d.0
lea ebx, [rdi - 0x7c]
mov dword [rsp + 0x6c], ebx
movabs rdx, 0x7ffffffffffffffe
mov r8d, 0x2e
mov eax, dword [rbp + 0xbd8]
nop
cmp ebx, 0x1e
ja case.default.0x18001115d
movzx eax, byte [r15 + rbx + 0x11b20]
mov ecx, dword [r15 + rax*4 + 0x11aec]
add rcx, r15
jmp rcx
mov dword [rsp + 0x40], ebx
jmp case.0x1800110cc.137
mov word [rsp + 0x78], r8w
mov dword [rsp + 0x7a], 0x760073
jmp case.0x1800110cc.137
cmp dword [r12], 0
jne 0x1800111a8
mov ecx, 0xed
mov eax, ecx
sub eax, 0xec
je case.0x18001115d.0
cmp eax, 1
jne 0x180011199
mov eax, dword [0x18007c160]
mov dword [rsp + 0x40], eax
dec ecx
cmp ecx, 0xeb
ja 0x180011181
jmp case.0x1800110cc.137
mov ecx, 0xfa
nop dword [rax]
mov eax, ecx
sub eax, 0xfa
je 0x1800111d6
cmp eax, 1
jne 0x1800111e0
mov eax, dword [rsp + 0x40]
add rsp, 0xc78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, dword [0x18007c164]
mov dword [rsp + 0x40], eax
inc ecx
cmp ecx, 0xfc
jb 0x1800111b0
jmp case.0x1800110cc.137
mov rdx, qword [0x18007d710]
test rdx, rdx
je 0x1800110fc
mov r8d, dword [r12]
cmp dword [rdx], r8d
jne 0x180011237
mov ecx, 0xaf
nop dword [rax]
cmp ecx, 0xaf
je 0x180011222
cmp ecx, 0x3cd7
je case.0x18001115d.0
jmp 0x180011229
mov eax, dword [rdx + 4]
mov dword [rsp + 0x40], eax
add ecx, 0x3c28
cmp ecx, 0x7850
jbe 0x180011210
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x180011203
lea r8d, [rdx + 0x6d]
jmp 0x1800110fc
mov r8d, 2
lea rdx, [0x180061b8c]
lea rcx, [rbp - 0x38]
call fcn.180047124
lea rcx, [rbp - 0x38]
sub rcx, 2
nop word [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180011270
mov eax, dword [0x180064070]
mov dword [rcx], eax
movzx eax, word [0x180064074]
mov word [rcx + 4], ax
jmp 0x1800110ed
mov r8d, 0xa
lea rdx, [rbp - 0x2c]
lea ecx, [r8 + 0x16]
call fcn.180047890
jmp 0x1800110ed
mov r9, rdx
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov ecx, 0x114
call fcn.180023ea0
jmp 0x1800110ed
mov word [rbp - 0x7c], r10w
jmp case.0x1800110cc.137
mov dword [rbp - 0x70], 0x73
jmp case.0x1800110cc.137
mov word [rbp - 0x78], r9w
jmp case.0x1800110cc.137
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x134]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1800114f0
mov r15d, 0x28
mov ecx, r15d
sub ecx, 0x25
je 0x1800113b7
sub ecx, 1
je 0x18001139a
sub ecx, 1
je 0x180011364
cmp ecx, 1
jne 0x1800114c0
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 4
mov dword [rbp + 0x240], eax
mov dword [rbp + 0x244], 3
jmp 0x1800114c0
mov r8d, 0x103
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x248]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor r9d, r9d
lea r8, [rbp + 0x240]
mov edx, 0xc2
mov rcx, r12
call fcn.1800342b0
mov rbx, rax
jmp 0x1800114c0
xor r9d, r9d
mov r8, r12
lea edx, [r9 + 0x61]
lea rcx, [rbp + 0x240]
call fcn.180014ba0
mov ebx, eax
jmp 0x1800114c0
test ebx, ebx
jne 0x180011474
cmp dword [rbp + 0x244], ebx
jne 0x180011474
mov edi, 6
mov eax, edi
sub eax, 4
je 0x18001142e
sub eax, 1
je 0x180011400
cmp eax, 1
jne 0x180011436
lea r8, [rbp + 0x134]
lea rdx, [rbp + 0x30]
lea rcx, str.CRLSetFetcher::LoadFromDisk
call fcn.18003efe0
jmp 0x180011436
mov edi, 0xba
mov eax, edi
sub eax, 0xb9
je 0x18001143f
cmp eax, 1
jne 0x180011468
xor r9d, r9d
mov r8, r12
lea edx, [rax + 0x60]
lea rcx, [rbp + 0x240]
call fcn.180014ba0
mov ebx, eax
test eax, eax
je 0x180011468
mov edi, 4
lea esi, [rdi + 0x77]
dec edi
cmp edi, 3
ja 0x1800113d0
jmp 0x1800114b7
mov r8d, dword [rbp + 0x240]
test r8d, r8d
je 0x18001142e
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x244]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
cmp edi, 0xb8
ja 0x180011405
jmp 0x180011400
mov edi, 0x124
nop dword [rax]
mov eax, edi
sub eax, 0x124
je 0x1800114a0
cmp eax, 0x7e
jne 0x1800114ac
lea rdx, [rbp + 0x30]
lea rcx, str.Check_failed:_inserted.
call fcn.18003edc0
jmp 0x1800114ac
mov ecx, dword [rbp + 0x244]
call qword [sym.imp.KERNEL32.dll_SetLastError]
add edi, 0x7e
cmp edi, 0x220
jb 0x180011480
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec r15d
cmp r15d, 0x24
ja 0x180011323
xor r9d, r9d
lea edi, [r9 + 0x30]
lea r8d, [r9 + 0x6d]
lea r10d, [r9 + 0x32]
lea r11d, [r9 + 0x63]
lea r14d, [r9 + 0x73]
lea r15, [0x180000000]
jmp 0x1800110fc
lea rdx, [rbp + 0x134]
lea rcx, str.V6_vgtb_and_128B
call fcn.18003edc0
xor r9d, r9d
lea r8d, [r9 + 0x6d]
lea r10d, [r9 + 0x32]
lea r11d, [r9 + 0x63]
lea r14d, [r9 + 0x73]
jmp 0x1800110fc
mov word [rsp + 0x7e], r11w
jmp case.0x1800110cc.137
mov word [rbp - 0x7a], di
jmp case.0x1800110cc.137
mov r8d, 2
lea rdx, [0x180064102]
lea rcx, [rbp - 0x70]
call fcn.1800470dc
movabs rdx, 0x7ffffffffffffffe
mov r8d, 0x2e
jmp case.0x18001115d.5
mov eax, dword [0x180064188]
mov dword [rbp - 0x6a], eax
movzx eax, word [0x18006418c]
mov word [rbp - 0x66], ax
jmp case.0x18001115d.5
mov dword [rsp + 0x68], r9d
lea rbx, [rbp - 0x10]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x58], r9
mov edi, 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x48], r9w
mov r13d, 0x103
nop dword [rax]
cmp r13d, 0x3c225
ja 0x1800118a0
je 0x180011920
cmp r13d, 0x103
je 0x180011920
cmp r13d, 0xc13d
je 0x180011920
cmp r13d, 0x18177
je 0x180011709
cmp r13d, 0x301eb
jne 0x180011920
mov rsi, qword [rsp + 0x58]
cmp rsi, rdi
jae 0x180011615
lea rax, [rsi + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rdi, 8
cmovae rax, qword [rsp + 0x48]
mov dword [rax + rsi*2], 0x2e
jmp 0x1800116ed
mov rax, rdx
sub rax, rsi
cmp rax, 1
jb 0x180011a7c
lea r15, [rsi + 1]
mov rbx, r15
or rbx, 7
cmp rbx, rdx
jbe 0x18001163a
mov rbx, rdx
jmp 0x18001165b
mov rcx, rdi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rdi, rax
jbe 0x180011650
mov rbx, rdx
jmp 0x18001165b
lea rax, [rdi + rcx]
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x48]
call fcn.180030c70
mov r14, rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rbx
add rsi, rsi
mov r8, rsi
mov rcx, rax
cmp rdi, 8
jb 0x1800116d1
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
call fcn.180042e20
mov dword [r14 + rsi], 0x2e
lea rdx, [rdi*2 + 2]
cmp rdx, 0x1000
jb 0x1800116c7
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x180011a70
mov rbx, rcx
mov rcx, rbx
call fcn.180040b40
jmp 0x1800116e3
lea rdx, [rsp + 0x48]
call fcn.180042e20
mov dword [r14 + rsi], 0x2e
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x48], r14
mov r8d, 3
lea rdx, [0x180061fc0]
lea rcx, [rsp + 0x48]
call fcn.180030d70
jmp 0x180011908
mov r14, qword [r12 + 0x10]
mov rbx, r12
cmp qword [r12 + 0x18], 8
jb 0x18001171d
mov rbx, qword [r12]
cmp r14, 8
jae 0x180011735
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x58], xmm0
mov esi, 7
mov r15, qword [rbp - 0x58]
jmp 0x180011779
mov rsi, r14
or rsi, 7
cmp rsi, rdx
cmova rsi, rdx
lea rdx, [rsi + 1]
lea rcx, [rbp - 0x58]
call fcn.180030c70
mov r15, rax
mov qword [rbp - 0x58], rax
lea r8, [r14*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.180042e20
mov rdi, qword [rsp + 0x60]
movabs rdx, 0x7ffffffffffffffe
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x48], r14
lea r12, [rbp - 0x58]
cmp rsi, 8
cmovae r12, r15
cmp r14, 8
jae 0x1800117a2
movups xmm0, xmmword [r12]
mov qword [rbp + 0x20], 7
jmp 0x1800117e1
mov rbx, r14
or rbx, 7
cmp rbx, rdx
cmova rbx, rdx
lea rdx, [rbx + 1]
lea rcx, [rbp + 8]
call fcn.180030c70
mov qword [rbp + 8], rax
lea r8, [r14*2 + 2]
mov rdx, r12
mov rcx, rax
call fcn.180042e20
mov qword [rbp + 0x20], rbx
mov rdi, qword [rsp + 0x60]
movups xmm0, xmmword [rbp + 8]
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp + 0x18], r14
cmp rdi, 8
jb 0x180011826
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180011821
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180011a82
call fcn.180040b40
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rsp + 0x58], xmm0
cmp rsi, 8
jb 0x180011873
lea rdx, [rsi*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x18001186b
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180011a70
mov rcx, r15
call fcn.180040b40
mov rbx, qword [rsp + 0x70]
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x180011882
lea rcx, [rsp + 0x48]
call fcn.180030d70
mov r12, qword [rbp + 0xbc0]
jmp 0x180011908
cmp r13d, 0x4825f
je 0x1800118ea
cmp r13d, 0x6c30d
jne 0x180011920
cmp qword [rbp - 0x18], 0
jne 0x180011920
mov edx, r9d
nop dword [rax]
cmp edx, 6
ja case.0x1800118d2.0
mov eax, edx
mov ecx, dword [r15 + rax*4 + 0x11b40]
add rcx, r15
jmp rcx
mov byte [rsp + 0x40], 0
inc edx
lea eax, [rdx + 0x10b]
cmp eax, 0x112
jb 0x1800118c0
jmp 0x180011916
lea rcx, [rsp + 0x48]
cmp rdi, 8
cmovae rcx, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbp - 0x18], rax
mov rdi, qword [rsp + 0x60]
mov r8d, 0x2e
xor r9d, r9d
movabs rdx, 0x7ffffffffffffffe
add r13d, 0xc03a
cmp r13d, 0x78244
lea r15, [0x180000000]
jbe 0x1800115a0
cmp rdi, 8
jb 0x180011978
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180011973
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180011a76
call fcn.180040b40
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
add rbx, 8
mov qword [rsp + 0x70], rbx
cmp eax, 3
movabs rdx, 0x7ffffffffffffffe
mov r8d, 0x2e
lea r9d, [r8 - 0x2e]
lea r15, [0x180000000]
jb 0x180011581
mov ebx, dword [rsp + 0x6c]
mov edi, dword [rbp + 0xbd0]
jmp case.0x18001115d.5
mov dword [rbp - 0x6e], 0x6c0073
jmp case.0x18001115d.5
mov byte [rsp + 0x40], 1
jmp case.0x18001115d.5
lea rax, [rsp + 0x78]
mov qword [rbp - 0x10], rax
jmp case.0x18001115d.5
lea rax, [rbp - 0x38]
mov qword [rbp - 8], rax
jmp case.0x18001115d.5
lea rax, [rbp - 0x70]
mov qword [rbp], rax
jmp case.0x18001115d.5
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp - 0x10], xmm0
movsd xmm1, qword [rbp - 0x48]
movsd qword [rbp], xmm1
jmp case.0x18001115d.5
mov word [rbp - 0x64], r9w
mov eax, dword [rbp + 0xbd8]
inc edi
mov dword [rbp + 0xbd0], edi
inc ebx
mov dword [rsp + 0x6c], ebx
cmp edi, eax
jae case.0x18001115d.0
xor r9d, r9d
lea r15, [0x180000000]
jmp 0x180011140
cmp rdi, 8
jb case.0x18001115d.0
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180011a66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180011a76
call fcn.180040b40
jmp case.0x18001115d.0
call fcn.180046e04
nop
call fcn.180046e04
nop
call fcn.18002fe10
nop
call fcn.180046e04
int3