Function at 0x63d6a0
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 0x63d6f3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x63da98
cmp byte [rdi], 0
je 0x63daf0
mov rax, rdi
xor r9d, r9d
jmp 0x63d715
cmp r9d, 0x80000000
je 0x63daf0
add rax, 1
add r9d, 1
cmp byte [rax], 0
jne 0x63d708
and r9d, 0x7fffffff
lea ebx, [r9 + 1]
lea rax, [rbx + rbx + 0xf]
mov r9, rbx
shr rax, 4
shl rax, 4
call fcn.007388f0
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 0x63d910
lea rax, [rbx - 1]
cmp rax, 0xe
jbe 0x63db32
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 0x63d788
mov rax, rbx
and rax, 0xfffffffffffffff0
cmp rax, rbx
je 0x63d910
movsx dx, byte [rdi + rax]
mov word [r12 + rax*2], dx
lea rdx, [rax + 1]
cmp rdx, rbx
jae 0x63d910
movsx cx, byte [rdi + rax + 1]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 2]
cmp rdx, rbx
jae 0x63d910
movsx cx, byte [rdi + rax + 2]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 3]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 3]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 4]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 4]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 5]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 5]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 6]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 6]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 7]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 7]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 8]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 8]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 9]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 9]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xa]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 0xa]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xb]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 0xb]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xc]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 0xc]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xd]
cmp rbx, rdx
jbe 0x63d910
movsx cx, byte [rdi + rax + 0xd]
mov word [r12 + rdx*2], cx
lea rdx, [rax + 0xe]
cmp rbx, rdx
jbe 0x63d910
movsx ax, byte [rdi + rax + 0xe]
mov word [r12 + rdx*2], ax
nop word [rax + rax]
xor eax, eax
lea r9, [0x0092b6a8]
jmp 0x63d925
cmp rdx, rbx
jae 0x63d980
lea rcx, [rax + rax]
lea rdx, [rax + 1]
cmp word [rsi + rcx], 0x25
mov rax, rdx
jne case.0x63d962.1
lea r8, [rsi + rcx + 2]
movzx ecx, word [r8]
mov rax, rdx
cmp cx, 0x63
ja 0x63d968
cmp cx, 0x29
jbe case.0x63d962.1
sub ecx, 0x2a
cmp cx, 0x39
ja case.0x63d962.1
movzx ecx, cx
movsxd rcx, dword [r9 + rcx*4]
add rcx, r9
jmp rcx
cmp cx, 0x73
jne case.0x63d962.1
mov edi, 0x53
mov word [r8], di
cmp rdx, rbx
jb 0x63d925
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 0x63d9bc
call fcn.0063d540
test eax, eax
jg 0x63d9f8
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 0x63d93c
lea rdx, str.OpenSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r12, rax
test rax, rax
je 0x63d9d5
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.0x63d962.1
mov r10d, 0x43
mov word [r8], r10w
jmp case.0x63d962.1
mov r11d, 0x73
mov word [r8], r11w
jmp case.0x63d962.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 0x63d910
movsx ax, byte [rdi]
mov word [rsi], ax
jmp 0x63d910
xor eax, eax
jmp 0x63d7c5