Function at 0x180076050
Capabilities:
Access the windows event log

Disassembly:
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
cmp qword [rax + 8], rcx
jae 0x18005053c
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x60], 1
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax + 0x18]
mov dword [rsp + 0x38], eax
mov eax, 1
imul rax, rax, 0
movzx ecx, byte [rsp + 0x38]
mov byte [rsp + rax + 0x20], cl
mov eax, dword [rsp + 0x38]
sar eax, 4
and eax, 0xf
cdqe
lea rcx, [0x18012d1a0]
mov edx, 1
imul rdx, rdx, 1
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov eax, dword [rsp + 0x38]
and eax, 0xf
cdqe
lea rcx, [0x18012d1a0]
mov edx, 1
imul rdx, rdx, 2
movzx eax, byte [rcx + rax]
mov byte [rsp + rdx + 0x20], al
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax + 0x18]
and eax, 0xff
cdqe
lea rcx, [0x18012d0a0]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x3c], al
cmp byte [rsp + 0x3c], 1
je 0x1800502dc
cmp byte [rsp + 0x3c], 2
je 0x1800502e1
cmp byte [rsp + 0x3c], 3
je 0x180050337
jmp 0x1800503a7
jmp 0x1800503be
movzx eax, byte [rsp + 0x90]
mov r8d, 1
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1800509b0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xffffffff
je 0x18005030f
cmp dword [rsp + 0x50], 0
je 0x180050319
jmp 0x18005031b
mov rax, qword [rsp + 0x48]
jmp 0x180050541
jmp 0x180050332
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x20], 0x3d
mov qword [rsp + 0x28], 3
jmp 0x1800503be
movzx eax, byte [rsp + 0x90]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1800509b0
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0xffffffff
je 0x180050362
cmp dword [rsp + 0x54], 1
je 0x18005036c
jmp 0x18005038e
mov rax, qword [rsp + 0x48]
jmp 0x180050541
mov rax, qword [rsp + 0x28]
mov byte [rsp + rax + 0x20], 0xa
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x60], 2
jmp 0x1800503a5
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x20], 0x3d
mov qword [rsp + 0x28], 3
jmp 0x1800503be
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x20], 0x3d
mov qword [rsp + 0x28], 3
mov rax, qword [rsp + 0x28]
movsx eax, byte [rsp + rax + 0x1f]
cmp eax, 0xa
je 0x180050483
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
add rax, qword [rsp + 0x28]
cmp rax, 0x4c
jbe 0x1800503ee
mov dword [rsp + 0x58], 1
jmp 0x1800503f6
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x180050459
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
add rax, qword [rsp + 0x28]
cmp rax, 0x4c
jne 0x180050459
movzx eax, byte [rsp + 0x90]
mov r8, qword [rsp + 0x60]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1800509b0
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0xffffffff
je 0x180050445
cmp dword [rsp + 0x5c], 0
je 0x180050451
jmp 0x180050459
mov rax, qword [rsp + 0x48]
jmp 0x180050541
mov dword [rsp + 0x40], 1
cmp dword [rsp + 0x40], 0
je 0x180050483
lea rdx, [0x180158654]
lea rcx, [rsp + 0x20]
call fcn.1800faf60
mov qword [rsp + 0x28], 3
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x28], rax
jbe 0x180050497
jmp 0x18005053c
mov r8, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.180129f80
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
add rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
and al, 0x30
and al, 0x30
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
movsx eax, byte [rsp + rax + 0x1f]
cmp eax, 0xa
jne 0x180050520
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
add rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
jmp 0x180050201
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov eax, 0x278
call fcn.1800e9570
sub rsp, rax
lea rbp, [rsp + 0x50]
mov rax, qword [0x180173200]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x1800760e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1800760e7
mov rdi, qword [rbp + 0x260]
lea rsi, [rbp + 0x268]
mov ecx, 2
call fcn.1800f0780
mov rbx, rax
call fcn.1800050a0
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
call fcn.1800f529c
jmp 0x1800762bf
mov r8, qword [rbp + 0x260]
mov rcx, r8
call fcn.180075be0
inc eax
mov edi, eax
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x180076110
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1800e9570
sub rsp, rcx
xor esi, esi
lea rbx, [rsp + 0x50]
test rbx, rbx
jne 0x180076137
lea rbx, str.no_stack_
jmp 0x180076203
mov dword [rsp + 0x28], edi
mov r9d, edi
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180076177
mov rdx, rsi
test rdi, rdi
je 0x180076177
nop dword [rax]
mov rax, qword [rbp + 0x260]
movsx ecx, byte [rdx + rax]
mov word [rbx + rdx*2], cx
inc rdx
cmp rdx, rdi
jb 0x180076160
mov rdx, rsi
test rdi, rdi
je 0x180076203
mov r10d, 0x53
lea r9, [0x180000000]
lea r11d, [r10 + 0x20]
lea r14d, [r10 - 0x10]
lea r15d, [r10 + 0x10]
nop dword [rax]
cmp word [rbx + rdx*2], 0x25
jne case.0x1800761d2.47
lea r8, [rbx + 2]
lea r8, [r8 + rdx*2]
nop
movzx eax, word [r8]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x1800761d2.47
cdqe
movzx eax, byte [r9 + rax + 0x762f8]
mov ecx, dword [r9 + rax*4 + 0x762e0]
add rcx, r9
jmp rcx
inc rdx
add r8, 2
jmp 0x1800761b0
mov word [rbx + rdx*2 + 2], r10w
jmp case.0x1800761d2.47
mov word [rbx + rdx*2 + 2], r11w
jmp case.0x1800761d2.47
mov word [rbx + rdx*2 + 2], r14w
jmp case.0x1800761d2.47
mov word [rbx + rdx*2 + 2], r15w
inc rdx
cmp rdx, rdi
jb 0x1800761a0
lea rdi, [rbp + 0x268]
call fcn.1800050a0
mov qword [rsp + 0x28], rdi
lea rdx, [rbp + 0x10]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r8d, 0xff
mov rcx, qword [rax]
or rcx, 1
call fcn.1800f5614
mov word [rbp + 0x20e], si
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1800762a6
call fcn.180075f20
test eax, eax
je 0x1800762a6
lea rdx, str.OPENSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x40], rsi
mov ecx, 1
mov rbx, rax
mov edx, ecx
lea rax, [rbp + 0x10]
xor r8d, r8d
mov qword [rbp], rax
xor r9d, r9d
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], cx
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1800762bf
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.OpenSSL:_FATAL
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.1800e95d0
lea rsp, [rbp + 0x228]
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret