Function at 0x401b80
Capabilities:
Encrypt data using aes
Get file size
Read file on windows
Reference aes constants
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5b0040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x50], edx
mov ecx, 0x100
mov esi, 0x58ffe8
mov edi, 0x5bc980
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x100
mov esi, 0x58fbe8
mov edi, 0x5bc580
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x100
mov esi, 0x58f7e8
mov edi, 0x5bc180
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x100
mov esi, 0x58f3e8
mov edi, 0x5bbd80
rep movsd dword es:[edi], dword [esi]
push 0x58e950
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5bcd84], eax
test eax, eax
je 0x401c68
push str._allrem
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5bcd80], eax
test eax, eax
jne 0x401c12
push str.Getallrem_Adress_Failed__n_n
call fcn.005305c0
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401c7e
push 0x58e988
call fcn.00401b10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
lea eax, [ebp - 0x24]
push 0x58e998
push eax
call fcn.004032b0
lea eax, [ebp - 0x24]
push eax
call fcn.00401b10
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053059c
mov esp, ebp
pop ebp
ret
push 0x58e9b0
call fcn.00401b10
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push eax
push 0x58e9c0
call fcn.00401b10
add esp, 0xc
mov dword [ebp - 0x48], 0xfffffe00
mov dword [ebp - 0x44], 0xffffffff
push 0x800
call fcn.0053066f
add esp, 4
mov esi, eax
mov dword [ebp - 0x4c], esi
push 0x800
push 0
push esi
call fcn.00532a40
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x44]
add esp, 0xc
push 2
push eax
push dword [ebp - 0x48]
push ebx
call edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x200
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401e74
push 0x58ea24
call fcn.00401b10
add esp, 4
push 1
push 0x200
push dword [ebp - 0x4c]
push 0
push 0
call fcn.004021a0
add esi, 0x89
mov ecx, esi
call fcn.004020c0
test al, al
je 0x401da8
mov eax, dword [ebp - 0x50]
push 0x58ea38
mov dword [ebp - 0x54], 1
mov dword [eax], 1
mov eax, dword [esi + 0x15e]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x162]
mov dword [ebp - 0x2c], eax
call fcn.00401b10
add esp, 4
push 0x58ea40
call fcn.00401b10
mov eax, dword [ebp - 0x4c]
add esp, 4
add eax, 0xa2
push eax
push 0x58ea50
call fcn.00401b10
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x58ea60
call fcn.00401b10
add esp, 0x14
push 0
push 0
push 0
push ebx
call edi
jmp 0x401e77
push 1
push 0x200
push dword [ebp - 0x4c]
push 0
push 0
call fcn.00402150
push 2
push 0x200
push dword [ebp - 0x4c]
push 0
push 0
call fcn.004021a0
mov ecx, esi
call fcn.004020c0
test al, al
je 0x401e46
push 0x58eac0
call fcn.00401b10
add esp, 4
push 0x58ea40
call fcn.00401b10
mov eax, dword [esi + 0x15e]
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x162]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], 2
mov dword [eax], 2
mov eax, dword [ebp - 0x4c]
add eax, 0xa2
push eax
push 0x58ea50
call fcn.00401b10
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x58eac8
call fcn.00401b10
add esp, 0x14
push 0
push 0
push 0
push ebx
call edi
jmp 0x401e77
push 0x58eb28
call fcn.00401b10
add esp, 4
push 0x58eb34
call fcn.00401b10
mov eax, dword [ebp - 0x50]
add esp, 4
push 0
push 0
push 0
push ebx
mov dword [eax], 3
call edi
jmp 0x401e77
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
cmp dword [eax], 3
jne 0x401ec1
cmp dword [0x5bcdb0], 1
jne 0x401ea7
push 0x58eb44
call fcn.00401b10
mov eax, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], 2
jmp 0x401ed0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053059c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x15e]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x162]
push dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
call fcn.00530701
add esp, 4
push 0x80080
call fcn.00405823
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x401eae
push 0x80080
push 0
push eax
call fcn.00532a40
add esp, 0xc
push 0x58eb50
call fcn.00401b10
add esp, 4
push 0x58eb64
call fcn.00401b10
add esp, 4
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x58eb90
call fcn.00401b10
mov edi, dword [ebp - 0x2c]
add esp, 0xc
mov esi, dword [ebp - 0x30]
push 0
push 0x80000
push edi
push esi
call fcn.00535520
push 0
push 0x80000
push edi
push esi
mov dword [ebp - 0x4c], eax
call fcn.0053ffa0
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
push str.BlockNum:_ld_LeftBytes:_ld_n_n
call fcn.00401b10
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov esi, dword [ebp - 0x50]
xor edi, edi
test eax, eax
je 0x401ff7
jmp 0x401f80
push 0x80000
mov eax, edi
mov dword [ebp - 0x5c], 0
shl eax, 0x13
push 0
push esi
mov dword [ebp - 0x60], eax
call fcn.00532a40
add esp, 0xc
lea eax, [ebp - 0x38]
push 0
push eax
push 0x80000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401fef
push dword [ebp - 0x54]
push 0x80000
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call fcn.004021a0
push 1
push 0
push 0xfff80000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x34]
push eax
push 0x80000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4c]
inc edi
cmp edi, eax
jb 0x401f80
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x402074
push 0x80000
add edi, 0xfff
shl eax, 0x13
push 0
and edi, 0xfffff000
mov dword [ebp - 0x60], eax
push esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x5c], 0
call fcn.00532a40
add esp, 0xc
lea eax, [ebp - 0x38]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
js 0x40208b
push dword [ebp - 0x54]
push dword [ebp - 0x64]
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call fcn.004021a0
mov eax, edi
neg eax
push 1
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x34]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
js 0x40208b
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040581e
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0053059c
mov esp, ebp
pop ebp
ret