Function at 0x1400035b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x338
mov rax, qword [0x140013240]
xor rax, rsp
mov qword [rsp + 0x320], rax
test r9d, r9d
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x1400035e8
lea eax, [r9 + 1]
jmp 0x140003926
test r8, r8
mov qword [rsp + 0x330], r12
je 0x140003638
cmp byte [r8], 0
je 0x140003638
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jle 0x140003628
lea rcx, [rsp + 0x60]
mov rdx, rdi
mov r8d, 0x104
call sub.MSVCR80.dll_memcpy
mov byte [rsp + 0x163], 0
jmp 0x140003653
lea rcx, [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140003653
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.OracleMTSRecoveryService__ld_.TRC
lea rcx, [rsp + 0x60]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140003674
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], 0xffffffffffffffff
xor r12d, r12d
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 3]
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x50], rax
je 0x14000390c
lea r9d, [r12 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsp + 0x380]
mov dword [0x1400132a8], ebp
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea r8d, [r12 + 2]
lea rdx, [0x14000e08c]
mov dword [rbx + 0x68], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea r8d, [r12 + 0x47]
lea rdx, str._r_n
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rsi, rsi
je 0x140003767
cmp byte [rsi], r12b
je 0x140003767
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
lea r9, [rsp + 0x40]
mov rdx, rsi
not rcx
mov qword [rsp + 0x20], r12
lea r8, [rcx - 1]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea r8d, [r12 + 2]
lea rdx, [0x14000e08c]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140003792
lea rcx, str.OracleMTSRecoveryService_r_n
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea rdx, str.OracleMTSRecoveryService_r_n
mov r8d, eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x54]
movzx ecx, word [rsp + 0x50]
movzx eax, word [rsp + 0x52]
movzx edi, word [rsp + 0x48]
movzx r9d, word [rsp + 0x4e]
movzx r8d, word [rsp + 0x4a]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rdx, str._ld__ld__ld__02ld:_02ld:_02ld
lea rcx, [rsp + 0x170]
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x1f0]
mov edi, eax
mov eax, 0x124
cmp edi, eax
cmova edi, eax
mov r8d, edi
call sub.MSVCR80.dll_memcpy
test edi, edi
je 0x140003858
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x1f0]
mov r8d, edi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea rdx, [0x14000e08c]
mov r8d, 2
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
lea rdx, str.______________________________________________________________________r_n
mov r8d, 0x47
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.14000bc10
test eax, eax
je 0x1400038da
lea rdx, [0x14000e06c]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
je 0x1400038da
lea r8, [rsp + 0x60]
lea rdx, str.omtsrecomsg_s.dll
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x58], rax
jmp 0x1400038de
mov qword [rbx + 0x58], r12
lea rcx, str.omtsrecomsgus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [rbx + 0x60], rax
jne 0x140003910
cmp qword [rbx + 0x58], r12
jne 0x140003910
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], 0xffffffffffffffff
xor eax, eax
jmp 0x14000391e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov r12, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000be00
add rsp, 0x338
pop rdi
pop rsi
pop rbp
pop rbx
ret