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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
mov eax, 0x2d0
call fcn.1402b4ee0
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rax, qword [0x14036aa00]
xor rax, rbp
mov qword [rbp + 0x270], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0
je 0x140095cc6
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x140095cc6
lea rax, [rbp + 0x298]
mov qword [rbp + 0x28], rax
mov r9, qword [rbp + 0x28]
mov r8, qword [rbp + 0x290]
mov edx, 0x200
lea rcx, [rbp + 0x70]
call fcn.1400960b0
mov dword [rbp + 0x14], eax
cmp dword [rbp + 0x14], 0
jge 0x140095c93
mov qword [rbp + 0x48], 0x200
jmp 0x140095c9a
mov eax, dword [rbp + 0x14]
mov qword [rbp + 0x48], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
mov r8d, dword [rbp + 0x48]
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rbp + 0x28], 0
jmp 0x140095f95
xor eax, eax
test eax, eax
je 0x140095cdc
mov rax, qword [rbp + 0x290]
mov qword [rbp + 0x38], rax
jmp 0x140095eab
mov rcx, qword [rbp + 0x290]
call fcn.140096050
inc eax
mov eax, eax
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140095d0d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402b4ee0
sub rsp, rax
lea rax, [rsp + 0x50]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140095d3c
lea rax, str.no_stack_
mov qword [rbp + 0x38], rax
jmp 0x140095eab
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x20]
mov r8, qword [rbp + 0x290]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140095da7
mov qword [rbp], 0
jmp 0x140095d7a
mov rax, qword [rbp]
inc rax
mov qword [rbp], rax
mov rax, qword [rbp + 0x20]
cmp qword [rbp], rax
jae 0x140095da7
mov rax, qword [rbp]
mov rcx, qword [rbp + 0x290]
add rcx, rax
mov rax, rcx
movsx ax, byte [rax]
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov word [rcx + rdx*2], ax
jmp 0x140095d6f
mov qword [rbp], 0
jmp 0x140095dbc
mov rax, qword [rbp]
inc rax
mov qword [rbp], rax
mov rax, qword [rbp + 0x20]
cmp qword [rbp], rax
jae 0x140095e99
mov rax, qword [rbp + 8]
mov rcx, qword [rbp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x25
jne 0x140095e94
mov dword [rbp + 0x18], 0
mov rax, qword [rbp + 8]
mov rcx, qword [rbp]
movzx eax, word [rax + rcx*2 + 2]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
sub eax, 0x2a
mov dword [rbp + 0x10], eax
cmp dword [rbp + 0x10], 0x49
ja case.0x140095e26.1
movsxd rax, dword [rbp + 0x10]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x95ff8]
mov eax, dword [rcx + rax*4 + 0x95fb0]
add rax, rcx
jmp rax
mov rax, qword [rbp]
inc rax
mov qword [rbp], rax
mov dword [rbp + 0x18], 1
jmp case.0x140095e26.1
mov eax, 0x53
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov word [rcx + rdx*2 + 2], ax
jmp case.0x140095e26.1
mov eax, reloc.WS2_32.dll_WSAStartup
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov word [rcx + rdx*2 + 2], ax
jmp case.0x140095e26.1
mov eax, 0x43
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov word [rcx + rdx*2 + 2], ax
jmp case.0x140095e26.1
mov eax, 0x63
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov word [rcx + rdx*2 + 2], ax
cmp dword [rbp + 0x18], 0
jne 0x140095ddf
jmp 0x140095db1
mov rax, qword [rbp + 8]
mov qword [rbp + 0x38], rax
xor eax, eax
test eax, eax
jne 0x140095cdc
lea rax, [rbp + 0x298]
mov qword [rbp + 0x28], rax
mov r9, qword [rbp + 0x28]
mov r8, qword [rbp + 0x38]
mov edx, 0xff
lea rcx, [rbp + 0x70]
call fcn.140096180
mov eax, 2
imul rax, rax, 0xff
mov qword [rbp + 0x50], rax
cmp qword [rbp + 0x50], 0x200
jae 0x140095ee8
jmp 0x140095eed
call fcn.1402b4c90
xor eax, eax
mov rcx, qword [rbp + 0x50]
mov word [rbp + rcx + 0x70], ax
mov qword [rbp + 0x28], 0
xor eax, eax
cmp eax, 1
je 0x140095f7c
call fcn.140095a40
test eax, eax
jle 0x140095f7c
lea rdx, str.OpenSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x140095f7a
lea rax, [rbp + 0x70]
mov qword [rbp + 0x60], rax
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dx, 1
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x140095f95
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.OpenSSL:_FATAL
lea rdx, [rbp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x270]
xor rcx, rbp
call fcn.1402b48e0
lea rsp, [rbp + 0x280]
pop rbp
ret