Function at 0x492f50
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov rdi, rcx
mov qword [rbp + 0x218], rdx
mov qword [rbp + 0x220], r8
mov qword [rbp + 0x228], r9
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x492f9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x493350
cmp byte [rdi], 0
je 0x493380
mov rax, rdi
xor r9d, r9d
jmp 0x492fb9
test r9d, r9d
js 0x4932a0
add rax, 1
add r9d, 1
cmp byte [rax], 0
jne 0x492fb0
and r9d, 0x7fffffff
lea esi, [r9 + 1]
lea rax, [rsi + rsi + 0x1e]
mov r9, rsi
shr rax, 4
shl rax, 4
call fcn.0058e300
xor edx, edx
xor ecx, ecx
sub rsp, rax
mov r8, rdi
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4931a0
lea rax, [rsi - 1]
cmp rax, 0xe
jbe 0x4933c2
pxor xmm3, xmm3
mov r8, rsi
mov rcx, rdi
shr r8, 4
mov rax, rbx
xor edx, edx
nop dword [rax]
movdqu xmm0, xmmword [rcx]
add rdx, 1
movdqa xmm1, xmm3
add rcx, 0x10
movdqa xmm2, xmm0
add rax, 0x20
pcmpgtb xmm1, xmm0
punpcklbw xmm2, xmm1
punpckhbw xmm0, xmm1
movaps xmmword [rax - 0x20], xmm2
movaps xmmword [rax - 0x10], xmm0
cmp r8, rdx
ja 0x493030
mov rax, rsi
and rax, 0xfffffffffffffff0
cmp rax, rsi
je 0x4931a0
movsx dx, byte [rdi + rax]
mov word [rbx + rax*2], dx
lea rdx, [rax + 1]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 1]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 2]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 2]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 3]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 3]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 4]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 4]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 5]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 5]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 6]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 6]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 7]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 7]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 8]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 8]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 9]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 9]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 0xa]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 0xa]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 0xb]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 0xb]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 0xc]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 0xc]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 0xd]
cmp rdx, rsi
jae 0x4931a0
movsx cx, byte [rdi + rax + 0xd]
mov word [rbx + rdx*2], cx
lea rdx, [rax + 0xe]
cmp rdx, rsi
jae 0x4931a0
movsx ax, byte [rdi + rax + 0xe]
mov word [rbx + rdx*2], ax
xor eax, eax
lea r8, [0x00694188]
jmp 0x4931b8
cmp rdx, rsi
mov rax, rdx
jae 0x4931f4
cmp word [rbx + rax*2], 0x25
lea rcx, [rax + rax]
lea rdx, [rax + 1]
jne case.0x4931e2.1
lea rcx, [rbx + rcx + 2]
movzx eax, word [rcx]
sub eax, 0x2a
cmp ax, 0x49
ja case.0x4931e2.1
movzx eax, ax
movsxd rax, dword [r8 + rax*4]
add rax, r8
jmp rax
mov edi, 0x53
cmp rdx, rsi
mov rax, rdx
mov word [rcx], di
jb 0x4931b8
lea r9, [rbp + 0x218]
lea rsi, [rbp - 0x20]
mov r8, rbx
mov edx, 0xff
mov qword [rbp - 0x30], r9
mov rcx, rsi
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 0x493234
call fcn.00492df0
test eax, eax
jg 0x4932e0
lea r8, str.OpenSSL:_FATAL
mov r9d, 0x10
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rsp, [rbp + 0x1e8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r10d, 0x43
mov word [rcx], r10w
jmp case.0x4931e2.1
mov r11d, 0x73
mov word [rcx], r11w
jmp case.0x4931e2.1
mov r9d, 0x63
mov word [rcx], r9w
jmp case.0x4931e2.1
add rcx, 2
add rdx, 1
jmp 0x4931cc
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x28], 1
mov r9d, 1
mov r8, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4933bd
mov esi, 1
jmp 0x4931a0
xor ecx, ecx
lea rdx, str.OPENSSL
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
lea rax, [rbp - 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rbx
mov qword [rbp - 0x28], rsi
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, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
lea rsp, [rbp + 0x1e8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbx, [rbp + 0x218]
mov qword [rbp - 0x30], rbx
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x60]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_vfprintf
nop
lea rsp, [rbp + 0x1e8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x28], 1
mov r9d, 1
mov r8, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4932d1
movsx ax, byte [rdi]
mov word [rbx], ax
jmp 0x4932d1
mov esi, 1
xor eax, eax
jmp 0x493071