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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240
call fcn.10010a90
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006e109
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1006e109
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x200
lea ecx, [ebp - 0x210]
push ecx
call sub.MSVCR90.dll__vsnprintf
add esp, 0x10
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jge 0x1006e0cd
mov dword [ebp - 0x238], 0x200
jmp 0x1006e0d9
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x238], edx
push 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x214], 0
jmp 0x1006e3c0
xor ecx, ecx
je 0x1006e118
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
jmp 0x1006e303
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
shl eax, 1
call fcn.101c3c20
mov dword [ebp - 0x23c], esp
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x220], ecx
cmp dword [ebp - 0x220], 0
jne 0x1006e161
mov dword [ebp - 8], str.no_stack_
jmp 0x1006e303
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1006e1d0
mov dword [ebp - 0x224], 0
jmp 0x1006e1a3
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
cmp ecx, dword [ebp - 0x228]
jae 0x1006e1d0
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x224]
movsx ax, byte [edx]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov word [edx + ecx*2], ax
jmp 0x1006e194
mov dword [ebp - 0x224], 0
jmp 0x1006e1eb
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
cmp ecx, dword [ebp - 0x228]
jae 0x1006e2f2
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x25
jne 0x1006e2ed
mov dword [ebp - 0x22c], 0
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
movzx ecx, word [eax + edx*2 + 2]
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x240]
sub edx, 0x2a
mov dword [ebp - 0x240], edx
cmp dword [ebp - 0x240], 0x49
ja case.0x1006e260.1
mov eax, dword [ebp - 0x240]
movzx ecx, byte [eax + 0x1006e3ec]
jmp dword [ecx*4 + 0x1006e3d4]
mov edx, dword [ebp - 0x224]
add edx, 1
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x22c], 1
jmp case.0x1006e260.1
mov eax, 0x53
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov word [edx + ecx*2 + 2], ax
jmp case.0x1006e260.1
mov eax, 0x73
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov word [edx + ecx*2 + 2], ax
jmp case.0x1006e260.1
mov eax, 0x43
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov word [edx + ecx*2 + 2], ax
jmp case.0x1006e260.1
mov eax, 0x63
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov word [edx + ecx*2 + 2], ax
cmp dword [ebp - 0x22c], 0
jne 0x1006e216
jmp 0x1006e1dc
mov eax, dword [ebp - 0x220]
mov dword [ebp - 8], eax
xor ecx, ecx
jne 0x1006e118
lea edx, [ebp + 0xc]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xff
lea edx, [ebp - 0x210]
push edx
call sub.MSVCR90.dll__vsnwprintf
add esp, 0x10
xor eax, eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1006e3aa
call fcn.1006dee0
test eax, eax
jle 0x1006e3aa
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x1006e3a8
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x234], ecx
push 0
lea edx, [ebp - 0x234]
push edx
push 0
push 1
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1006e3c0
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10010588
mov esp, ebp
pop ebp
ret