Function at 0x1401e5090
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 r15, qword [rsp + 0xe8]
movsxd rax, edx
mov edi, r8d
mov dword [rsp + 0xc8], edx
mov rbp, rcx
add rax, rcx
and edi, 7
mov word [rsp + 0x36], r9w
mov qword [rsp + 0x28], rax
cmp edi, 2
je 0x1401e55c0
cmp edi, 4
jne 0x1401e50e0
and edx, 3
jne 0x1401e5718
xor r12d, r12d
cmp rbp, qword [rsp + 0x28]
je 0x1401e5356
mov eax, r9d
and r8d, 8
xor r12d, r12d
mov r14, rbp
and eax, 1
mov dword [rsp + 0x30], r8d
mov r13d, r12d
mov word [rsp + 0x34], ax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
movzx esi, word [rsp + 0x34]
mov eax, 0
shl esi, 5
cmp rbp, r14
cmovne esi, eax
cmp edi, 2
je 0x1401e5468
jg 0x1401e5230
test edi, edi
je 0x1401e5488
cmp edi, 1
jne 0x1401e5350
movzx r9d, byte [r14]
add r14, 1
mov dword [rsp + 0x58], r9d
cmp qword [rsp + 0x28], r14
je 0x1401e5253
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1401e526d
cmp r9d, 0xffff
ja 0x1401e54c0
cmp r9d, 0xff
ja 0x1401e5570
or si, word [rsp + 0x36]
mov byte [rsp + 0x5f], r9b
mov eax, esi
and eax, 4
test r9b, r9b
js 0x1401e5528
movsxd rax, r9d
lea rbx, [0x1405d5140]
movzx ecx, word [rbx + rax*2]
and ecx, esi
mov eax, ecx
test al, 0x61
je 0x1401e5520
test al, 8
jne 0x1401e5668
test r15, r15
je 0x1401e520b
mov r9, r15
mov r8d, 1
mov edx, 1
lea rcx, [0x1405d50b6]
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x1401e5350
lea rcx, [rsp + 0x5f]
mov r9, r15
mov r8d, 1
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x1401e5350
mov eax, 2
add r13d, eax
cmp qword [rsp + 0x28], r14
jne 0x1401e5115
mov r12d, r13d
jmp 0x1401e5356
cmp edi, 4
jne 0x1401e5350
mov r9d, dword [r14]
add r14, 4
bswap r9d
mov dword [rsp + 0x58], r9d
cmp qword [rsp + 0x28], r14
jne 0x1401e5160
mov eax, 0x40
cmp word [rsp + 0x34], 0
cmovne esi, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1401e516c
lea rbx, [rsp + 0x5f]
mov r8d, r9d
mov edx, 6
mov rcx, rbx
call fcn.1401e9b40
test eax, eax
jle 0x1401e5213
or si, word [rsp + 0x36]
sub eax, 1
mov qword [rsp + 0xe8], r15
mov r15, rbp
mov edx, esi
mov ecx, esi
lea r12, [rsp + rax + 0x60]
mov ebp, r13d
and edx, 4
and cx, 0x40f
mov dword [rsp + 0x48], edi
lea rax, [rsp + 0x57]
mov word [rsp + 0x4c], dx
lea rdx, [rsp + 0x65]
mov r13, qword [rsp + 0xe8]
mov rdi, rax
mov word [rsp + 0x4e], cx
mov qword [rsp + 0x40], rdx
nop dword [rax]
movzx eax, byte [rbx]
mov byte [rsp + 0x57], al
test al, al
js 0x1401e53b0
movzx edx, al
lea r10, [0x1405d5140]
movzx r9d, al
movzx ecx, word [r10 + rdx*2]
and ecx, esi
mov edx, ecx
test cl, 0x61
je 0x1401e5610
and edx, 8
je 0x1401e5410
cmp qword [rsp + 0xe0], 0
je 0x1401e5326
mov rax, qword [rsp + 0xe0]
mov byte [rax], 1
test r13, r13
je 0x1401e5370
mov r9, r13
mov r8d, 1
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
cmp rax, 1
je 0x1401e5370
nop word [rax + rax]
mov r12d, 0xffffffff
mov eax, r12d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 1
add rbx, 1
add ebp, eax
cmp r12, rbx
jne 0x1401e52d8
mov qword [rsp + 0xe8], r13
mov edi, dword [rsp + 0x48]
mov r13d, ebp
mov rbp, r15
mov r15, qword [rsp + 0xe8]
cmp qword [rsp + 0x28], r14
jne 0x1401e5115
jmp 0x1401e521e
cmp word [rsp + 0x4c], 0
movzx r9d, al
je 0x1401e5326
mov rcx, qword [rsp + 0x40]
lea r8, [0x1405d50b8]
mov edx, 0xb
call fcn.1400a9180
test r13, r13
je 0x1401e53fd
mov rcx, qword [rsp + 0x40]
mov r9, r13
mov r8d, 3
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 3
jne 0x1401e5350
mov eax, 3
jmp 0x1401e5375
test r13, r13
je 0x1401e5459
mov r9, r13
mov r8d, 1
mov edx, 1
lea rcx, [0x1405d50b6]
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x1401e5350
mov r9, r13
mov r8d, 1
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x1401e5350
mov eax, 2
jmp 0x1401e5375
movzx r9d, word [r14]
add r14, 2
rol r9w, 8
movzx r9d, r9w
mov dword [rsp + 0x58], r9d
jmp 0x1401e5155
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0xc8]
mov rcx, r14
call fcn.1401e9980
test eax, eax
js 0x1401e5350
sub dword [rsp + 0xc8], eax
cdqe
mov r9d, dword [rsp + 0x58]
add r14, rax
jmp 0x1401e5155
lea r12, [rsp + 0x65]
lea r8, str.W_08lX
mov edx, 0xb
mov rcx, r12
call fcn.1400a9180
test r15, r15
je 0x1401e54fe
mov r9, r15
mov r8d, 0xa
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rax, 0xa
jne 0x1401e5350
mov eax, 0xa
add r13d, eax
cmp qword [rsp + 0x28], r14
jne 0x1401e5115
jmp 0x1401e521e
and ax, 0x406
nop dword [rax]
test ax, ax
jne 0x1401e56d0
cmp r9d, 0x5c
je 0x1401e5690
test r15, r15
je 0x1401e5562
lea rcx, [rsp + 0x5f]
mov r9, r15
mov r8d, 1
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x1401e5350
mov eax, 1
jmp 0x1401e5503
lea r12, [rsp + 0x65]
lea r8, str.U_04lX
mov edx, 0xb
mov rcx, r12
call fcn.1400a9180
test r15, r15
je 0x1401e55ae
mov r9, r15
mov r8d, 6
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rax, 6
jne 0x1401e5350
mov eax, 6
jmp 0x1401e5503
test byte [rsp + 0xc8], 1
je 0x1401e50e0
call fcn.1400bf100
mov edx, 0xa1
lea r8, str.do_buf
lea rcx, str.crypto_asn1_a_strex.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x81
mov ecx, 0xd
call fcn.1400bf330
mov r12d, 0xffffffff
jmp 0x1401e5356
test cx, 0x406
jne 0x1401e53c0
cmp al, 0x5c
jne 0x1401e5326
cmp word [rsp + 0x4e], 0
je 0x1401e5326
test r13, r13
je 0x1401e5459
mov r9, r13
mov r8d, 2
mov edx, 1
lea rcx, [0x1405d50be]
call sub.msvcrt.dll_fwrite
cmp rax, 2
jne 0x1401e5350
jmp 0x1401e5459
cmp qword [rsp + 0xe0], 0
je 0x1401e553b
mov rax, qword [rsp + 0xe0]
mov byte [rax], 1
jmp 0x1401e553b
test si, 0x40f
je 0x1401e553b
test r15, r15
je 0x1401e520b
mov r9, r15
mov r8d, 2
mov edx, 1
lea rcx, [0x1405d50be]
call sub.msvcrt.dll_fwrite
cmp rax, 2
jne 0x1401e5350
jmp 0x1401e520b
lea r12, [rsp + 0x65]
lea r8, [0x1405d50b8]
mov edx, 0xb
mov rcx, r12
call fcn.1400a9180
test r15, r15
je 0x1401e570e
mov r9, r15
mov r8d, 3
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rax, 3
jne 0x1401e5350
mov eax, 3
jmp 0x1401e5503
call fcn.1400bf100
mov edx, 0x9b
lea r8, str.do_buf
lea rcx, str.crypto_asn1_a_strex.c
call fcn.1400bf220
xor r8d, r8d
mov edx, 0x85
mov ecx, 0xd
call fcn.1400bf330
mov r12d, 0xffffffff
jmp 0x1401e5356