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

Disassembly:
push rbp
push r12
push rdi
push rsi
push rbx
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov rdi, rcx
mov qword [rbp + 0x218], rdx
mov ecx, 0xfffffff4
mov qword [rbp + 0x220], r8
mov qword [rbp + 0x228], r9
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
test rax, rax
je 0x60c181
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x60c550
cmp byte [rdi], 0
je 0x60c490
mov rax, rdi
xor r9d, r9d
jmp 0x60c19b
test r9d, r9d
js 0x60c490
add rax, 1
add r9d, 1
cmp byte [rax], 0
jne 0x60c192
and r9d, 0x7fffffff
lea ebx, [r9 + 1]
lea rax, [rbx + rbx + 0xf]
mov r9, rbx
shr rax, 4
shl rax, 4
call fcn.00704490
xor edx, edx
xor ecx, ecx
sub rsp, rax
mov r8, rdi
lea r12, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov rsi, r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x60c390
lea rax, [rbx - 1]
cmp rax, 0xe
jbe 0x60c5a4
mov rdx, rbx
xor eax, eax
pxor xmm3, xmm3
and edx, 0xfffffff0
nop dword [rax + 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 0x60c210
mov rax, rbx
and rax, 0xfffffffffffffff0
cmp rax, rbx
je 0x60c390
movsx dx, byte [rdi + rax]
mov word [r12 + rax*2], dx
lea rdx, [rax + 1]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 1]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 2]
cmp rdx, rbx
jae 0x60c390
movsx cx, byte [rdi + rax + 2]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 3]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 3]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 4]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 4]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 5]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 5]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 6]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 6]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 7]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 7]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 8]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 8]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 9]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 9]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xa]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 0xa]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xb]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 0xb]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xc]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 0xc]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xd]
cmp rbx, rdx
jbe 0x60c390
movsx cx, byte [rdi + rax + 0xd]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xe]
cmp rbx, rdx
jbe 0x60c390
movsx ax, byte [rdi + rax + 0xe]
mov word [r12 + rdx*2], ax
nop
xor eax, eax
lea r8, [0x008e16d8]
jmp 0x60c3a8
mov rax, rdx
cmp rdx, rbx
jae 0x60c3e4
cmp word [rsi + rax*2], 0x25
lea rcx, [rax + rax]
lea rdx, [rax + 1]
jne case.0x60c3d2.1
lea rcx, [rsi + rcx + 2]
movzx eax, word [rcx]
sub eax, 0x2a
cmp ax, 0x49
ja case.0x60c3d2.1
movzx eax, ax
movsxd rax, dword [r8 + rax*4]
add rax, r8
jmp rax
mov edi, 0x53
mov rax, rdx
mov word [rcx], di
cmp rdx, rbx
jb 0x60c3a8
lea r9, [rbp + 0x218]
lea rbx, [rbp - 0x20]
mov r8, rsi
mov edx, 0xff
mov qword [rbp - 0x30], r9
mov rcx, rbx
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 0x60c424
call fcn.0060bfd0
test eax, eax
jg 0x60c4d2
mov r9d, 0x10
lea r8, str.OpenSSL:_FATAL
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rsp, [rbp + 0x1e0]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
mov r10d, 0x43
mov word [rcx], r10w
jmp case.0x60c3d2.1
mov r11d, 0x73
mov word [rcx], r11w
jmp case.0x60c3d2.1
mov r9d, 0x63
mov word [rcx], r9w
jmp case.0x60c3d2.1
add rcx, 2
add rdx, 1
jmp 0x60c3bc
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 0x60c390
movsx ax, byte [rdi]
mov word [rsi], ax
jmp 0x60c390
lea rdx, str.OpenSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x60c43d
lea rax, [rbp - 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rsi
mov qword [rbp - 0x28], rbx
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, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
lea rsp, [rbp + 0x1e0]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
lea r9, [rbp + 0x218]
lea rbx, [rbp - 0x20]
mov r8, rdi
mov edx, 0x200
mov qword [rbp - 0x30], r9
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__vsnprintf]
lea r9, [rbp - 0x28]
mov rdx, rbx
mov rcx, rsi
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 + 0x1e0]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
xor eax, eax
jmp 0x60c24d