Function at 0x357636d40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r14, rcx
mov rcx, qword [0x357659a40]
mov r13, rdx
mov rsi, r8
mov edx, 0xd
mov rbx, r9
call fcn.357629150
mov edx, 0xffffba49
mov qword [rsp + 0x60], rsi
mov word [rax + 0x10], dx
mov rdx, rsi
lea rdi, [rax + 0x10]
shr rdx, 0x20
mov dword [rax + 0x12], esi
mov word [rax + 0x16], dx
mov rdx, qword [rax]
mov dword [rax + 0x18], 0xff410000
mov qword [rsp + 0x58], rdx
mov rsi, qword [rax]
mov byte [rax + 0x1c], 0xe2
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x50], 0
test rbx, rbx
je 0x357636dec
xor r12d, r12d
cmp qword [rbx + 0x10], 0
je 0x357636dcc
movsxd r8, dword [rbx + 0x18]
test r8d, r8d
jne 0x357636de0
mov eax, r12d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rbx + 0x10]
mov rdx, r13
call sub.msvcrt.dll_memcpy
lea rbp, [rsp + 0x58]
lea r15, [rsp + 0x48]
mov qword [rsp + 0x48], r13
mov r9d, 4
lea rbx, [rsp + 0x44]
mov r8, rbp
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [0x357671a50]
test eax, eax
jne 0x3576372c0
lea rax, [rsp + 0x50]
mov r8, rdi
movsxd r9, esi
mov rdx, r13
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [0x357671a48]
mov edi, eax
test eax, eax
jne 0x357637010
mov edx, 0x6f22290e
lea rcx, [0x35764e5c0]
lea rdi, [rsp + 0x60]
mov r12d, 1
call fcn.357634e70
mov rcx, rdi
mov qword [rsp + 0x60], rax
call fcn.35763ef30
mov qword [rsp + 0x48], r13
mov r8, rbp
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov r9d, 0x20
call qword [0x357671a50]
test eax, eax
jne 0x357637298
lea rcx, [0x35764e560]
mov edx, 0x579f854e
call fcn.357634e70
mov rcx, rdi
mov qword [rsp + 0x60], rax
call fcn.35763ef30
mov rax, qword [0x3576595b0]
call qword [rax]
mov r8d, esi
mov rdx, r13
mov rcx, rax
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x28]
mov esi, eax
test eax, eax
je 0x357637270
mov edx, 0x1490d8ee
lea rcx, [0x35764e4c0]
mov edi, esi
movsxd rbx, esi
call fcn.357634e70
mov edx, 0x19
and esi, 0xf
shr edi, 0x1f
mov rcx, qword [0x35765a080]
mov r13, rax
call fcn.357626b50
movdqa xmm0, xmmword [0x357650240]
mov rdx, qword [0x357659c50]
mov r14, rax
movups xmmword [rax], xmm0
movzx eax, byte [rdx + rsi + 0x10]
mov byte [r14 + 0x17], al
mov rax, rbx
shr rax, 4
jne 0x3576371a8
test dil, dil
je 0x3576371a8
mov word [r14 + 0x15], 0x4646
movabs rbx, 0xffffffffffffff
mov rax, rbx
and eax, 0xf
shr rbx, 4
movzx eax, byte [rdx + rax + 0x10]
mov byte [r14 + 0x14], al
jne 0x3576371d3
test dil, dil
je 0x3576371d3
mov word [r14 + 0x12], 0x4646
movabs rbx, 0xffffffffffffff
mov rax, rbx
and eax, 0xf
shr rbx, 4
movzx eax, byte [rdx + rax + 0x10]
mov byte [r14 + 0x11], al
jne 0x3576371fe
test dil, dil
je 0x3576371fe
mov byte [r14 + 0x10], 0x46
nop dword [rax]
mov rbx, qword [fcn.357648410]
mov ecx, 1
call rbx
mov rdx, r13
mov rcx, rax
call fcn.35763ee30
mov ecx, 1
call rbx
mov rdx, r14
mov rcx, rax
call fcn.35763ee30
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x35764b092]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
jmp 0x357636dcc
mov edx, 0xc6a10a
lea rcx, [0x35764e600]
mov r12d, edi
call fcn.357634e70
mov rcx, qword [0x35765a080]
movsxd r8, edi
shr r12d, 0x1f
mov edx, 0x19
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x60], rax
call fcn.357626b50
mov rdx, qword [0x357659c50]
mov ecx, edi
mov r8, qword [rsp + 0x38]
and ecx, 0xf
movdqa xmm0, xmmword [0x357650240]
movzx ecx, byte [rdx + rcx + 0x10]
movups xmmword [rax], xmm0
mov byte [rax + 0x17], cl
mov rcx, r8
shr rcx, 4
jne 0x3576370d0
test r12b, r12b
je 0x3576370d0
movabs rdi, 0xffffffffffffff
mov word [rax + 0x15], 0x4646
mov rcx, rdi
and ecx, 0xf
shr rdi, 4
movzx ecx, byte [rdx + rcx + 0x10]
mov byte [rax + 0x14], cl
jne 0x3576370f9
test r12b, r12b
je 0x3576370f9
movabs rdi, 0xffffffffffffff
mov word [rax + 0x12], 0x4646
mov rcx, rdi
and ecx, 0xf
shr rdi, 4
movzx ecx, byte [rdx + rcx + 0x10]
mov byte [rax + 0x11], cl
jne 0x357637122
test r12b, r12b
je 0x357637122
mov byte [rax + 0x10], 0x46
jmp 0x35763712d
and ecx, 0xf
movzx ecx, byte [rdx + rcx + 0x10]
mov byte [rax + 0x16], cl
mov rcx, r8
shr rcx, 8
jne 0x357637147
test r12b, r12b
je 0x357637147
movabs rdi, 0xffffffffffffff
mov word [rax + 0x14], 0x4646
mov rcx, rdi
and ecx, 0xf
shr rdi, 4
movzx ecx, byte [rdx + rcx + 0x10]
mov byte [rax + 0x13], cl
jne 0x357637178
test r12b, r12b
je 0x357637178
movabs rdi, 0xffffffffffffff
mov word [rax + 0x11], 0x4646
and edi, 0xf
movzx edx, byte [rdx + rdi + 0x10]
mov byte [rax + 0x10], dl
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x68], rax
xor r12d, r12d
mov rcx, rdi
call fcn.35763ef90
jmp 0x357636e71
and ecx, 0xf
mov rdi, r8
movzx ecx, byte [rdx + rcx + 0x10]
shr rdi, 0xc
mov byte [rax + 0x15], cl
jne 0x357637088
test r12b, r12b
je 0x357637088
movabs rdi, 0xffffffffffffff
mov word [rax + 0x13], 0x4646
mov rcx, rdi
and ecx, 0xf
shr rdi, 4
movzx ecx, byte [rdx + rcx + 0x10]
mov byte [rax + 0x12], cl
jne 0x3576370b1
test r12b, r12b
je 0x3576370b1
mov word [rax + 0x10], 0x4646
jmp 0x35763712d
and eax, 0xf
movzx eax, byte [rdx + rax + 0x10]
mov byte [r14 + 0x16], al
mov rax, rbx
shr rax, 8
jne 0x35763720f
test dil, dil
je 0x35763720f
mov word [r14 + 0x14], 0x4646
movabs rbx, 0xffffffffffffff
mov rax, rbx
and eax, 0xf
shr rbx, 4
movzx eax, byte [rdx + rax + 0x10]
mov byte [r14 + 0x13], al
jne 0x35763723f
test dil, dil
je 0x35763723f
mov word [r14 + 0x11], 0x4646
movabs rbx, 0xffffffffffffff
and ebx, 0xf
movzx eax, byte [rdx + rbx + 0x10]
mov byte [r14 + 0x10], al
jmp 0x357636fb0
and eax, 0xf
shr rbx, 0xc
movzx eax, byte [rdx + rax + 0x10]
mov byte [r14 + 0x15], al
jne 0x357636f52
test dil, dil
je 0x357636f52
mov word [r14 + 0x13], 0x4646
movabs rbx, 0xffffffffffffff
mov rax, rbx
and eax, 0xf
shr rbx, 4
movzx eax, byte [rdx + rax + 0x10]
mov byte [r14 + 0x12], al
jne 0x357636f85
test dil, dil
je 0x357636f85
mov word [r14 + 0x10], 0x4646
jmp 0x357636fb0
mov edx, 0x3e1ed9ca
lea rcx, [0x35764e480]
call fcn.357634e70
mov rcx, rdi
mov qword [rsp + 0x60], rax
call fcn.35763ef30
jmp 0x357636dcc
mov edx, 0x284ab7ea
lea rcx, [0x35764e500]
call fcn.357634e70
mov rcx, rdi
mov qword [rsp + 0x60], rax
call fcn.35763ef30
jmp 0x357636eb6
mov edx, 0x42af82ae
lea rcx, [0x35764e640]
mov dword [rsp + 0x38], eax
call fcn.357634e70
mov edx, 0x19
movsxd rdi, dword [rsp + 0x38]
mov rcx, qword [0x35765a080]
mov qword [rsp + 0x60], rax
call fcn.357626b50
mov r8d, dword [rsp + 0x38]
mov r12d, edi
mov rdx, qword [0x357659c50]
movdqa xmm0, xmmword [0x357650240]
shr r12d, 0x1f
and r8d, 0xf
movzx ecx, byte [rdx + r8 + 0x10]
movups xmmword [rax], xmm0
mov byte [rax + 0x17], cl
mov rcx, rdi
shr rcx, 4
jne 0x35763732d
test r12b, r12b
jne 0x357637078
and ecx, 0xf
movzx ecx, byte [rdx + rcx + 0x10]
mov byte [rax + 0x16], cl
mov rcx, rdi
shr rcx, 8
jne 0x35763734a
test r12b, r12b
jne 0x3576370e9
and ecx, 0xf
shr rdi, 0xc
movzx ecx, byte [rdx + rcx + 0x10]
mov byte [rax + 0x15], cl
je 0x35763715f
jmp 0x357637088