Function at 0x180020720
Capabilities:
Access the windows event log
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x180045338]
xor rax, rsp
mov qword [rbp + 0xe8], rax
movzx edi, byte [rsp + 0x40]
mov r10, r9
imul eax, ecx, 0x291
mov rsi, rdx
mov qword [rsp + 0x58], r9
mov ebx, ecx
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], rdx
mov dword [rbp - 0x70], ecx
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x68], eax
cmp ecx, eax
ja case.0x180020816.29
mov r15d, dword [rsp + 0x68]
lea r8, [0x180000000]
mov r14, qword [rbp - 0x50]
xor edx, edx
movzx r13d, byte [rsp + 0x40]
mov r12, qword [rbp - 0x50]
lea r11d, [rdx + 0x66]
lea r9d, [rdx + 0x4d]
nop word [rax + rax]
cmp ebx, 0xa5f3
ja 0x180020e12
je 0x180020d47
mov eax, ebx
sub eax, 0xfa
je 0x180020c99
sub eax, 0x27
je 0x180020c50
sub eax, 0x4723
je 0x180020bc6
cmp eax, 0xb46
jne 0x180020c33
mov r15, qword [rsp + 0x78]
cmp r15, 0xffffffffffffffff
jne 0x180020ba4
mov esi, edx
nop
cmp esi, 0x1d
ja case.default.0x180020816
mov eax, esi
mov ecx, dword [r8 + rax*4 + 0x20fa8]
add rcx, r8
jmp rcx
mov dword [rbp + 0xc2], 0x690063
mov dword [rbp + 0xc6], 0x740061
jmp case.default.0x180020816
mov word [rbp + 0xe0], dx
jmp case.default.0x180020816
mov word [rbp + 0x60], r11w
jmp case.default.0x180020816
mov dword [rbp + 0x78], 0x49004d
jmp case.default.0x180020816
lea rdx, [rbp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180020881
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor edx, edx
mov qword [rsp + 0x70], rdx
mov dword [rbp - 0x7c], edx
jmp case.default.0x180020816
xor edx, edx
mov dword [rbp - 0x7c], edx
jmp case.default.0x180020816
mov eax, 0x69
mov dword [rbp + 0xcc], 0x6e006f
mov word [rbp + 0xca], ax
mov dword [rbp + 0xd0], 0x490073
jmp case.default.0x180020816
mov eax, 0x6f
mov dword [rbp + 0xb2], 0x690067
mov word [rbp + 0xb6], ax
mov dword [rbp + 0xb8], 0x41006e
jmp case.default.0x180020816
mov eax, 0x45
mov dword [rbp + 0x90], 0x520054
mov word [rbp + 0x8e], ax
mov dword [rbp + 0x94], 0x470059
jmp case.default.0x180020816
mov eax, 0x656c
mov word [rbp + 0x63], ax
jmp case.default.0x180020816
mov r8d, dword [rbp - 0x7c]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x60]
call qword [sym.imp.WINMM.dll_mmioOpenA]
mov r14, rax
xor edx, edx
jmp case.default.0x180020816
mov dword [rbp + 0x9a], 0x55004f
mov dword [rbp + 0x9e], 0x50
jmp case.default.0x180020816
mov eax, 0x4c
mov dword [rbp + 0x7e], 0x4d0043
mov word [rbp + 0x7c], ax
mov dword [rbp + 0x82], 0x5f0044
jmp case.default.0x180020816
mov dword [rbp + 0xd4], 0x52006e
mov dword [rbp + 0xd8], 0x6e0061
mov dword [rbp + 0xdc], 0x650067
jmp case.default.0x180020816
mov eax, 0x41
mov word [rbp + 0xa8], ax
jmp case.default.0x180020816
mov eax, 0x73
mov dword [rbp + 0xbe], 0x6f0073
mov word [rbp + 0xbc], ax
jmp case.default.0x180020816
mov dword [rbp + 0xae], 0x650052
jmp case.default.0x180020816
mov rcx, qword [rsp + 0x70]
lea rdx, [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_BackupEventLogW]
mov dword [rbp - 0x78], eax
xor edx, edx
jmp case.default.0x180020816
mov eax, 0x52
mov word [rbp + 0x98], ax
jmp case.default.0x180020816
mov byte [rsp + 0x41], 1
mov r13b, 1
mov qword [rsp + 0x70], rdx
jmp case.default.0x180020816
mov dword [rbp + 0x88], 0x4f0045
mov word [rbp + 0x8c], r9w
jmp case.default.0x180020816
xor dil, dil
jmp case.default.0x180020816
mov eax, 0x47
mov word [rbp + 0x86], ax
jmp case.default.0x180020816
mov eax, 0x72
mov word [rbp + 0x6f], ax
mov dword [rbp + 0x70], 0x3f6765
jmp case.default.0x180020816
mov eax, 0x6961
mov word [rbp + 0x61], ax
jmp case.default.0x180020816
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp + 0x50], eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
jmp case.default.0x180020816
cmp dword [rbp - 0x78], 0
mov ebx, edx
movzx eax, byte [rsp + 0x41]
mov ecx, edx
cmovne ebx, eax
test r14, r14
movzx eax, r13b
cmovne ecx, eax
mov byte [rsp + 0x41], bl
movzx r13d, cl
test bl, bl
je 0x180020ac5
lea rdx, [rbp + 0xa8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenBackupEventLogW]
mov qword [rsp + 0x70], rax
mov rcx, rax
mov byte [rsp + 0x41], bl
test rax, rax
jne 0x180020abd
mov byte [rsp + 0x41], al
jmp 0x180020ac3
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor edx, edx
test r13b, r13b
je case.default.0x180020816
mov ebx, 0x10e
xor r15d, r15d
mov eax, ebx
sub eax, 0x10e
je 0x180020b2d
cmp eax, 1
jne 0x180020b30
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call qword [sym.imp.WINMM.dll_mmioRead]
cmp eax, 0xffffffff
jne 0x180020b09
lea edx, [rax + 0x11]
mov rcx, r14
call qword [sym.imp.WINMM.dll_mmioClose]
xor r13b, r13b
jmp 0x180020b30
test r13b, r13b
je 0x180020b30
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call qword [sym.imp.WINMM.dll_mmioWrite]
mov edx, 0x10
mov rcx, r14
call qword [sym.imp.WINMM.dll_mmioClose]
jmp 0x180020b30
mov r12, r15
inc ebx
cmp ebx, 0x110
jb 0x180020ad6
mov r15, qword [rsp + 0x78]
xor edx, edx
jmp case.default.0x180020816
mov eax, 0x6d75
mov byte [rbp + 0x75], 0
mov word [rbp + 0x73], ax
jmp case.default.0x180020816
mov dword [rbp + 0xaa], 0x640064
jmp case.default.0x180020816
mov dword [rbp + 0x65], 0x732064
mov eax, 0x20
mov dword [rbp + 0x68], 0x747465
mov dword [rbp + 0x6b], 0x676e69
mov word [rbp + 0x6e], ax
inc esi
lea r8, [0x180000000]
mov r9d, 0x4d
lea eax, [rsi + 0xbb]
lea r11d, [r9 + 0x19]
cmp eax, 0xd9
jb 0x180020800
mov ebx, dword [rsp + 0x60]
mov dword [rsp + 0x64], edx
mov rcx, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r10, qword [rsp + 0x58]
lea r8, [0x180000000]
mov r15d, eax
xor edx, edx
jmp 0x180020c29
mov eax, dword [r10 + 4]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0x50]
mov eax, dword [rsi]
mov ecx, 0x132
mov dword [rsp + 0x48], eax
call fcn.180027770
mov ebx, eax
lea r8, [rsp + 0x50]
mov eax, dword [rsi + 4]
lea rdx, [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov ecx, 0x132
mov dword [rsp + 0x48], eax
mov eax, dword [rsi]
mov dword [rsp + 0x50], eax
call fcn.180027770
sub ebx, eax
mov rax, qword [rbp - 0x68]
mov dword [rax + 8], ebx
mov r10, rsi
lea r8, [0x180000000]
xor edx, edx
mov ebx, dword [rsp + 0x60]
mov r11d, 0x66
lea r9d, [r11 - 0x19]
imul eax, dword [rbp - 0x70], 0x49
add ebx, eax
mov dword [rsp + 0x60], ebx
cmp ebx, dword [rsp + 0x68]
ja case.0x180020816.29
mov rsi, qword [rbp - 0x60]
jmp 0x1800207b0
cmp qword [rsi + 0x18], 8
mov rcx, rsi
jb 0x180020c5d
mov rcx, qword [rsi]
mov qword [rsp + 0x30], rdx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r10, qword [rsp + 0x58]
lea r8, [0x180000000]
mov qword [rsp + 0x78], rax
xor edx, edx
jmp 0x180020c29
mov eax, dword [r10 + 8]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0x48]
mov eax, dword [rsi + 4]
mov ecx, 0x132
mov dword [rsp + 0x50], eax
call fcn.180027770
mov ebx, eax
lea r8, [rsp + 0x50]
mov eax, dword [rsi + 8]
lea rdx, [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov ecx, 0x132
mov dword [rsp + 0x48], eax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x50], eax
call fcn.180027770
sub ebx, eax
lea r8, [rsp + 0x50]
mov rax, qword [rbp - 0x68]
lea rdx, [rsp + 0x48]
mov ecx, 0x132
mov dword [rax], ebx
mov eax, dword [rsi]
mov dword [rsp + 0x48], eax
mov rax, qword [rbp - 0x60]
mov eax, dword [rax + 8]
mov dword [rsp + 0x50], eax
call fcn.180027770
mov ebx, eax
lea r8, [rsp + 0x50]
mov rax, qword [rbp - 0x60]
lea rdx, [rsp + 0x48]
mov ecx, 0x132
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
mov eax, dword [rsi + 8]
mov dword [rsp + 0x50], eax
call fcn.180027770
sub ebx, eax
mov rax, qword [rbp - 0x68]
mov dword [rax + 4], ebx
jmp 0x180020c19
mov rdx, qword [r10 + 0x10]
xor eax, eax
xorps xmm0, xmm0
mov ecx, r15d
mov qword [rbp - 0x20], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
cmp rcx, rdx
ja 0x180020d7b
mov qword [r10 + 0x10], rcx
mov rax, r10
cmp qword [r10 + 0x18], 0x10
jb 0x180020d75
mov rax, qword [r10]
mov byte [rax + rcx], 0
jmp 0x180020dd6
mov r8, qword [r10 + 0x18]
mov rsi, rcx
mov rax, r8
sub rsi, rdx
sub rax, rdx
cmp rsi, rax
ja 0x180020dbb
mov qword [r10 + 0x10], rcx
mov rax, r10
cmp r8, 0x10
jb 0x180020da0
mov rax, qword [r10]
lea rbx, [rax + rdx]
mov r8, rsi
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov byte [rsi + rbx], 0
mov ebx, dword [rsp + 0x60]
jmp 0x180020dd1
mov r9, rsi
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rsi
mov rcx, r10
call fcn.180002090
mov r10, qword [rsp + 0x58]
xor edx, edx
mov rcx, r10
call fcn.1800035b0
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x64]
mov rdx, rax
mov qword [rsp + 0x20], 0
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10, qword [rsp + 0x58]
lea r8, [0x180000000]
xor edx, edx
jmp 0x180020c29
cmp ebx, 0xf85c
je 0x180020e90
cmp ebx, 0x14ac5
je 0x180020c33
cmp ebx, 0x19d2e
je 0x180020e68
cmp ebx, 0x1ef97
jne 0x180020c33
movzx eax, dil
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.180039fa0
mov rbx, qword [rsp + 0x230]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
mov r10, qword [rsp + 0x58]
lea r8, [0x180000000]
xor edx, edx
mov dil, 1
jmp 0x180020c29
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
cmp r15d, dword [rsp + 0x64]
je 0x180020f4b
mov ebx, edx
nop word [rax + rax]
lea r8, [0x180000000]
cmp ebx, 5
ja case.0x180020ec9.0
mov eax, ebx
mov ecx, dword [r8 + rax*4 + 0x21020]
add rcx, r8
jmp rcx
mov edx, dword [rbp - 0x74]
lea r8, [rbp - 0x58]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r10, qword [rsp + 0x58]
lea r8, [0x180000000]
xor edx, edx
test eax, eax
jne 0x180020f11
mov byte [rsp + 0x40], al
jmp 0x180020f11
mov byte [rsp + 0x40], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp - 0x50], rax
xor edx, edx
lea r8, [0x180000000]
mov r10, qword [rsp + 0x58]
inc ebx
lea eax, [rbx + 0x8b]
cmp eax, 0x91
jb 0x180020eb0
jmp 0x180020c25
mov r10, qword [rsp + 0x58]
mov dword [rbp - 0x74], 0x20008
mov rax, r10
mov qword [r10 + 0x10], rdx
cmp qword [r10 + 0x18], 0x10
jb 0x180020f42
mov rax, qword [r10]
mov byte [rax], 0
mov qword [rbp - 0x58], rdx
jmp 0x180020f11
mov r10, qword [rsp + 0x58]
lea r8, [0x180000000]
jmp 0x180020c29
cmp byte [rsp + 0x40], 0
je 0x180020f9e
mov ebx, 0xd2
nop dword [rax + rax]
mov eax, ebx
sub eax, 0xd0
je 0x180020f8a
cmp eax, 1
jne 0x180020f94
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_IsTokenRestricted]
jmp 0x180020f94
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec ebx
cmp ebx, 0xcf
ja 0x180020f70
xor al, al
jmp 0x180020e3e