Function at 0x10001cf0
Capabilities:
Delete file
Get file size
Move file
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008fa10
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x8a8
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x894], edx
mov edi, ecx
mov dword [ebp - 0x884], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8ac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x89c], eax
xor eax, eax
mov word [ebp - 0x438], ax
push 0x206
push eax
lea eax, [ebp - 0x436]
push eax
call fcn.10055aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x848], ax
push 0x40e
push eax
lea eax, [ebp - 0x846]
push eax
call fcn.10055aa0
add esp, 0xc
mov byte [ebp - 0x230], 0
push 0x103
push 0
lea eax, [ebp - 0x22f]
push eax
call fcn.10055aa0
add esp, 0xc
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea eax, [ebp - 0x127]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x898], 0
xor eax, eax
mov word [ebp - 0x858], ax
mov dword [ebp - 0x856], eax
mov dword [ebp - 0x852], eax
mov dword [ebp - 0x84e], eax
mov word [ebp - 0x84a], ax
mov dword [ebp - 0x880], eax
mov dword [ebp - 0x88c], 0xffffffff
mov dword [ebp - 0x888], eax
lea ebx, [eax + 0x32]
mov dword [ebp - 0x87c], eax
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], eax
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x8a8], eax
mov dword [ebp - 0x8a4], eax
mov dword [ebp - 0x890], 0x140003
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x10001e5e
xor eax, eax
jmp 0x1000245a
call fcn.10001ab0
cmp eax, 1
je 0x10001e6e
cmp dword [ebp + 8], 1
jg 0x10001e57
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp word [0x100e1fb0], 0
je 0x10001fbb
push str.mbae_default.log
push 0x100e1fb0
push 0x10086350
lea eax, [ebp - 0x438]
push eax
call fcn.10004ed0
add esp, 0x10
lea eax, [ebp - 0x87c]
push eax
push 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10001fbb
xor ecx, ecx
mov eax, dword [ebp - 0x860]
add ecx, dword [ebp - 0x85c]
adc eax, 0
mov dword [ebp - 0x8b4], eax
jne 0x10002077
cmp ecx, 0x1900000
ja 0x10002077
cmp byte [0x100e0960], 1
jne 0x10001fb4
push 0
push 0x80
push 3
push 0
push 1
push 1
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x88c], edi
cmp edi, 0xffffffff
je 0x10001fae
push 0
lea eax, [ebp - 0x888]
push eax
push 4
lea eax, [ebp - 0x890]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x88c], 0xffffffff
cmp dword [ebp - 0x890], 0x140003
je 0x10001fae
lea eax, [ebp - 0x438]
push eax
push str._s.old
lea eax, [ebp - 0x848]
push eax
call fcn.10004ef0
add esp, 0xc
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x890], 0x140003
mov edi, dword [ebp - 0x884]
mov byte [0x100e0960], 0
push 0x104
lea eax, [ebp - 0x128]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10001fec
push str.NoProc
push 0x104
lea eax, [ebp - 0x128]
push eax
call fcn.100528d9
add esp, 0xc
push 0x5c
lea eax, [ebp - 0x128]
push eax
call fcn.10052f50
add esp, 8
test eax, eax
je 0x1000202f
inc eax
push eax
push 0x104
lea eax, [ebp - 0x128]
push eax
call fcn.100528d9
add esp, 0xc
push 0x2e
lea eax, [ebp - 0x128]
push eax
call fcn.10052220
add esp, 8
test eax, eax
je 0x1000202f
mov byte [eax], 0
test edi, edi
je 0x1000208a
cmp byte [edi], 0
je 0x1000208a
push 0x5c
push edi
call fcn.10052f50
add esp, 8
test eax, eax
je 0x10002087
inc eax
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.100528d9
add esp, 0xc
push 0x2e
lea eax, [ebp - 0x230]
push eax
call fcn.10052220
add esp, 8
test eax, eax
je 0x100020a3
mov byte [eax], 0
jmp 0x100020a3
sub esp, 8
call fcn.100046a0
add esp, 8
jmp 0x10001fb4
push edi
jmp 0x1000208f
push str.NoMod
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.100528d9
add esp, 0xc
mov ecx, dword [ebp - 0x89c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100020b0
sub ecx, edx
lea eax, [ecx + 0x514]
mov dword [ebp - 0x880], eax
add eax, 0xa
push eax
call fcn.1005218a
add esp, 4
mov edi, eax
mov dword [ebp - 0x898], edi
test edi, edi
jne 0x10002113
push esi
lea eax, [ebp - 0x438]
push eax
push str.Memory_allocation_error_in_log_file:__s____d_n
call fcn.1005282a
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, esi
jmp 0x1000245a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push dword [ebp - 0x89c]
push dword [ebp - 0x8ac]
push dword [ebp + 8]
movzx eax, word [ebp - 0x84c]
push eax
movzx eax, word [ebp - 0x84e]
push eax
movzx eax, word [ebp - 0x850]
push eax
movzx eax, word [ebp - 0x852]
push eax
movzx eax, word [ebp - 0x856]
push eax
movzx eax, word [ebp - 0x858]
push eax
push dword [ebp - 0x894]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
push str._s__s__d_____04d__02d__02d____02d:_02d:_02d____X____s:__s____t_d____u____u_r_n
mov eax, dword [ebp - 0x880]
dec eax
push eax
push edi
call fcn.10052136
add esp, 0x48
cmp word [ebp - 0x438], 0
jne 0x100021a0
push edi
jmp 0x100020f3
push 0
push 0x80
push 4
push 0
push 1
push 4
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x88c], esi
cmp esi, 0xffffffff
jne 0x10002271
push str.Retry_log_file_open_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esi
jne 0x10002271
mov eax, ebx
dec ebx
mov dword [ebp - 0x8b0], ebx
test eax, eax
jne 0x100021a0
cmp esi, esi
jne 0x10002271
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x10086434
call fcn.1005282a
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x438]
push eax
push 0x10086438
mov eax, dword [ebp - 0x880]
dec eax
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.1005211a
add esp, 0x14
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x848]
push eax
push 0x10086484
call fcn.10052604
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0x14
jmp 0x10002457
lea eax, [ebp - 0x8a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100022e5
mov eax, dword [ebp - 0x8a8]
or eax, dword [ebp - 0x8a4]
jne 0x100022e5
push eax
lea eax, [ebp - 0x888]
push eax
push 4
lea eax, [ebp - 0x890]
push eax
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
test eax, eax
je 0x100022b8
cmp dword [ebp - 0x888], 4
je 0x100022eb
push str.Error_writting_the_log_file_header_n
mov eax, dword [ebp - 0x880]
dec eax
push eax
push edi
call fcn.10052136
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push 0x100864b0
call fcn.1005282a
jmp 0x10002259
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100022f0
sub ecx, edx
mov dword [ebp - 0x880], ecx
mov ecx, edi
call fcn.10002a60
mov ecx, eax
mov dword [ebp - 0x884], ecx
mov eax, dword [ebp - 0x880]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp ecx, eax
jge 0x1000233b
mov eax, dword [ebp - 0x880]
push eax
push ecx
push str.Error_MbaeEncryptBuffer:__d____d_n
dec eax
push eax
push edi
call fcn.10052136
add esp, 0x14
jmp 0x100022ce
push 0
lea eax, [ebp - 0x888]
push eax
push 4
lea eax, [ebp - 0x880]
push eax
push esi
call ebx
test eax, eax
je 0x100023eb
cmp dword [ebp - 0x888], 4
jne 0x100023eb
mov eax, dword [ebp - 0x884]
shl eax, 3
mov dword [ebp - 0x894], eax
push 0
lea ecx, [ebp - 0x888]
push ecx
push eax
push edi
push esi
call ebx
test eax, eax
je 0x10002394
mov eax, dword [ebp - 0x894]
cmp dword [ebp - 0x888], eax
je 0x100023dd
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x438]
push eax
push str.Error_writting_the_log_file:__s____d____d_n
lea eax, [ebp - 0x848]
push eax
call fcn.10004ef0
add esp, 0x14
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x848]
push eax
push 0x10086484
call fcn.10052604
add esp, 8
mov dword [ebp - 4], 0
call fcn.10002421
jmp 0x10002450
push dword [ebp - 0x884]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x438]
push eax
push str.Error_writting_the_log_file:__s____d____d_n
lea eax, [ebp - 0x848]
push eax
call fcn.10004ef0
jmp 0x10002238
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret