Function at 0x407b30
Capabilities:
Copy file
Delete file
Encode data using xor
Get file size
Write file on windows

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
push eax
call fcn.0040d630
mov edi, str.RavMonD.log
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x80
push 4
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
push eax
and ecx, 3
lea eax, [esp + 0x50]
push 0xc0000000
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408007
xor ecx, ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x248]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x100014
sub eax, ecx
cmp edx, eax
jbe 0x407cc0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x141]
mov byte [esp + 0x140], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x140]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x144]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 0
lea eax, [esp + 0x50]
push 0xc0000000
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408007
mov esi, dword [esp + 0x248]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x254]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], 0
cmp ebx, ecx
jbe 0x407cf9
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
jmp 0x407d0b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
mov esi, ecx
add esi, 0x80
push esi
mov dword [esp + 0x1c], esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x407d36
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x407d62
push ebx
call fcn.00414922
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov ecx, esi
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x36]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x32]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x34]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x36]
push edx
mov edx, dword [esp + 0x36]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push 0x419404
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x258]
push 4
push ecx
push ebp
call esi
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x254]
push 4
push eax
push ebp
call esi
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x260]
push 4
push edx
push ebp
call esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push eax
dec ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ecx
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push ebp
call esi
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x1c], eax
jbe 0x407e7d
mov edi, dword [esp + 0x20]
mov eax, ebx
sub eax, edi
mov dword [esp + 0x24], eax
jmp 0x407e68
mov eax, dword [esp + 0x24]
mov dl, byte [eax + edi]
mov al, byte [esp + 0x1c]
xor dl, al
inc ecx
mov byte [edi], dl
mov eax, dword [esp + 0x10]
inc edi
cmp ecx, eax
jb 0x407e64
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push edx
push ebp
call esi
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x248]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
push ecx
push 4
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x407f2c
mov edx, ebx
mov ecx, esi
sub edx, esi
mov al, byte [ecx + edx]
xor al, byte [esp + 0x1c]
inc edi
mov byte [ecx], al
mov eax, dword [esp + 0x10]
inc ecx
cmp edi, eax
jb 0x407f19
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x254]
push eax
push str._s_r_n
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, ecx
mov dword [esp + 0x1c], eax
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
jbe 0x407fda
mov ecx, ebx
mov edi, esi
sub ecx, esi
mov dword [esp + 0x24], ecx
jmp 0x407fc5
mov ecx, dword [esp + 0x24]
mov cl, byte [edi + ecx]
mov dl, byte [esp + 0x1c]
xor cl, dl
inc eax
mov byte [edi], cl
mov ecx, dword [esp + 0x10]
inc edi
cmp eax, ecx
jb 0x407fc1
lea edx, [esp + 0x14]
push 0
push edx
push ecx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00414922
push esi
call fcn.00414922
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret