Function at 0x14000e4a0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x228], rdx
mov rdi, rcx
mov ecx, 0xfffffff4
mov qword [rbp + 0x230], r8
mov qword [rbp + 0x238], r9
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
test rax, rax
je 0x14000e4f3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x14000e8a8
cmp byte [rdi], 0
je 0x14000e900
mov rax, rdi
xor r9d, r9d
jmp 0x14000e515
cmp r9d, 0x80000000
je 0x14000e900
add rax, 1
add r9d, 1
cmp byte [rax], 0
jne 0x14000e508
and r9d, 0x7fffffff
lea ebx, [r9 + 1]
lea rax, [rbx + rbx + 0xf]
mov r9, rbx
shr rax, 4
shl rax, 4
call fcn.1403219a0
xor edx, edx
xor ecx, ecx
sub rsp, rax
mov r8, rdi
lea r12, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
mov rsi, r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000e720
lea rax, [rbx - 1]
cmp rax, 0xe
jbe 0x14000e942
mov rdx, rbx
xor eax, eax
pxor xmm3, xmm3
and edx, 0xfffffff0
nop dword [rax]
movdqu xmm0, xmmword [rdi + rax]
movdqa xmm1, xmm3
pcmpgtb xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm2, xmm1
punpckhbw xmm0, xmm1
movaps xmmword [r12 + rax*2], xmm2
movaps xmmword [r12 + rax*2 + 0x10], xmm0
add rax, 0x10
cmp rax, rdx
jne 0x14000e588
mov rax, rbx
and rax, 0xfffffffffffffff0
cmp rax, rbx
je 0x14000e720
movsx cx, byte [rdi + rax]
lea rdx, [rax + rax]
mov word [r12 + rax*2], cx
lea rcx, [rax + 1]
cmp rcx, rbx
jae 0x14000e720
movsx cx, byte [rdi + rax + 1]
mov word [r12 + rdx + 2], cx
lea rcx, [rax + 2]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 2]
mov word [r12 + rdx + 4], cx
lea rcx, [rax + 3]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 3]
mov word [r12 + rdx + 6], cx
lea rcx, [rax + 4]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 4]
mov word [r12 + rdx + 8], cx
lea rcx, [rax + 5]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 5]
mov word [r12 + rdx + 0xa], cx
lea rcx, [rax + 6]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 6]
mov word [r12 + rdx + 0xc], cx
lea rcx, [rax + 7]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 7]
mov word [r12 + rdx + 0xe], cx
lea rcx, [rax + 8]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 8]
mov word [r12 + rdx + 0x10], cx
lea rcx, [rax + 9]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 9]
mov word [r12 + rdx + 0x12], cx
lea rcx, [rax + 0xa]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 0xa]
mov word [r12 + rdx + 0x14], cx
lea rcx, [rax + 0xb]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 0xb]
mov word [r12 + rdx + 0x16], cx
lea rcx, [rax + 0xc]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 0xc]
mov word [r12 + rdx + 0x18], cx
lea rcx, [rax + 0xd]
cmp rbx, rcx
jbe 0x14000e720
movsx cx, byte [rdi + rax + 0xd]
mov word [r12 + rdx + 0x1a], cx
lea rcx, [rax + 0xe]
cmp rbx, rcx
jbe 0x14000e720
movsx ax, byte [rdi + rax + 0xe]
mov word [r12 + rdx + 0x1c], ax
nop dword [rax]
xor eax, eax
lea r9, [0x1403336d8]
jmp 0x14000e735
cmp rbx, rdx
jbe 0x14000e790
lea rcx, [rax + rax]
lea rdx, [rax + 1]
cmp word [rsi + rcx], 0x25
mov rax, rdx
jne case.0x14000e772.1
lea r8, [rsi + rcx + 2]
movzx ecx, word [r8]
mov rax, rdx
cmp cx, 0x63
ja 0x14000e778
cmp cx, 0x29
jbe case.0x14000e772.1
sub ecx, 0x2a
cmp cx, 0x39
ja case.0x14000e772.1
movzx ecx, cx
movsxd rcx, dword [r9 + rcx*4]
add rcx, r9
jmp rcx
cmp cx, 0x73
jne case.0x14000e772.1
mov edi, 0x53
mov word [r8], di
cmp rbx, rdx
ja 0x14000e735
nop dword [rax]
lea r9, [rbp + 0x228]
lea r13, [rbp - 0x20]
mov r8, rsi
mov edx, 0xff
mov qword [rbp - 0x30], r9
mov rcx, r13
call qword [sym.imp.msvcrt.dll__vsnwprintf]
xor eax, eax
mov word [rbp + 0x1de], ax
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x14000e7cc
call fcn.14000e340
test eax, eax
jg 0x14000e808
mov r9d, 0x10
lea r8, str.OpenSSL:_FATAL
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rsp, [rbp + 0x1e8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
add r8, 2
add rdx, 1
jmp 0x14000e74c
lea rdx, str.OpenSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r12, rax
test rax, rax
je 0x14000e7e5
lea rax, [rbp - 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, r12
mov qword [rbp - 0x28], r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
lea rsp, [rbp + 0x1e8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
mov ecx, 0x63
mov word [r8], cx
jmp case.0x14000e772.1
mov r10d, 0x43
mov word [r8], r10w
jmp case.0x14000e772.1
mov r11d, 0x73
mov word [r8], r11w
jmp case.0x14000e772.1
lea r9, [rbp + 0x228]
lea r13, [rbp - 0x20]
mov r8, rdi
mov edx, 0x200
mov qword [rbp - 0x30], r9
mov rcx, r13
call qword [sym.imp.msvcrt.dll__vsnprintf]
lea r9, [rbp - 0x28]
mov rdx, r13
mov rcx, r12
test eax, eax
mov r8d, 0x200
mov qword [rsp + 0x20], 0
cmovns r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rsp, [rbp + 0x1e8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
sub rsp, 0x10
mov r9d, 1
mov r8, rdi
xor edx, edx
lea rsi, [rsp + 0x50]
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov ebx, 1
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000e720
movsx ax, byte [rdi]
mov word [rsi], ax
jmp 0x14000e720
xor eax, eax
jmp 0x14000e5c5