Function at 0x6a02b0
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x88835c
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x9de1c0], ebx
call esi
mov dword [0x9de1c8], eax
mov eax, dword [esp + 0x208]
cmp eax, ebx
je 0x6a0fb7
cmp dword [esp + 0x20c], ebx
je 0x6a0fb7
cmp dword [0x9de1cc], ebx
jne 0x6a0320
mov dword [0x9de1c0], 2
mov dword [0x9de1c4], 0xbef
jmp 0x6a0fcb
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xe9]
mov byte [esp + 0xe8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xe8]
push 1
push eax
mov dword [esp + 0x68], ebx
call fcn.00691860
add esp, 8
test eax, eax
jne 0x6a036d
mov dword [0x9de1c0], 7
mov dword [0x9de1c4], 0xbfb
jmp 0x6a0fcb
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x12c]
mov dword [esp + 0x128], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x94]
mov dword [esp + 0x90], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x48]
call fcn.00636b60
lea ecx, [esp + 0x40]
mov dword [esp + 0x200], ebx
call fcn.00636b60
lea ecx, [esp + 0x28]
mov byte [esp + 0x200], 1
call fcn.00636b60
mov eax, dword [esp + 0x210]
mov byte [esp + 0x200], 2
cmp eax, ebx
mov dword [esp + 0x58], ebx
je 0x6a03f9
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00697d10
add esp, 8
cmp eax, ebx
je 0x6a03f9
lea ecx, [esp + 0x28]
call fcn.00637450
mov dword [esp + 0x58], eax
cmp word [esp + 0x9a], bx
push ebp
mov dword [esp + 0x18], ebx
jne 0x6a0e16
lea edx, [esp + 0x44]
push ebx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x134]
push eax
lea edx, [esp + 0xf8]
push ecx
push edx
call fcn.006919b0
add esp, 0x14
test eax, eax
je 0x6a0e36
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x17d]
mov byte [esp + 0x17c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
mov edx, dword [esp + 0x14f]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x158]
lea ecx, [esp + 0x18c]
push 0x40
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x174]
push edx
push eax
push ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x84], ebx
call fcn.00694890
add esp, 0x24
cmp eax, ebx
mov dword [esp + 0x50], eax
je 0x6a0e56
push eax
call fcn.0067ea20
add esp, 4
cmp eax, ebx
mov dword [esp + 0x80], eax
je 0x6a0e76
mov edx, dword [esp + 0x50]
push edx
call fcn.00699ad0
mov ecx, dword [esp + 0x210]
add esp, 4
mov word [esp + 0x9c], ax
lea eax, [esp + 0x54]
push eax
push ecx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x210]
mov esi, eax
mov eax, dword [esp + 0x54]
xor ecx, ecx
xor edi, edi
mov ebp, eax
push eax
or edi, esi
or ebp, ecx
push esi
push edx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebp
call fcn.006a3ff0
add esp, 0xc
test eax, eax
je 0x6a0e96
cmp ebp, ebx
ja 0x6a053f
cmp edi, 0x200
jbe 0x6a0549
mov dword [esp + 0x48], 0x200
jmp 0x6a0559
cmp edi, 0x1000
mov dword [esp + 0x48], edi
ja 0x6a0eba
mov ecx, dword [esp + 0x80]
push 0x1000
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
mov dword [esp + 0x24], eax
call fcn.00699a10
push 0x1000
mov dword [esp + 0x28], eax
call fcn.008325b4
mov edx, dword [esp + 0x28]
mov ebp, eax
push edx
mov dword [esp + 0x50], ebp
call fcn.008325b4
add esp, 0x10
cmp ebp, ebx
mov dword [esp + 0x18], eax
je 0x6a0f36
cmp eax, ebx
je 0x6a0f36
mov ecx, 0x400
xor eax, eax
mov edi, ebp
mov dword [esp + 0x38], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x6c], ebx
je 0x6a05ec
mov eax, dword [esp + 0x110]
or al, 0x10
mov dword [esp + 0x110], eax
cmp dword [esp + 0x58], ebx
je 0x6a0602
mov eax, dword [esp + 0x110]
or al, 0x20
mov dword [esp + 0x110], eax
mov edi, dword [esp + 0x20c]
cmp edi, 0xffffffff
jne 0x6a062d
mov dword [0x9de1c0], 1
mov dword [0x9de1c4], 0x25b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9de1c8], eax
mov ecx, dword [esp + 0x54]
xor eax, eax
xor edx, edx
or eax, esi
or ecx, edx
mov edx, eax
and edx, 0xfff
mov dword [esp + 0x134], ebx
mov esi, edx
mov dword [esp + 0x138], ebx
or esi, ebx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
je 0x6a0696
cmp ecx, ebx
ja 0x6a066e
cmp eax, 0x1000
jbe 0x6a0672
mov esi, ebx
jmp 0x6a0676
mov edx, eax
mov esi, ecx
mov ebp, eax
sub ebp, edx
mov edx, ecx
sbb edx, esi
add ebp, 0x1000
adc edx, ebx
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], edx
jmp 0x6a06a4
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0x164]
mov dword [esp + 0x160], eax
push ecx
lea eax, [esp + 0x180]
push edx
push eax
call fcn.006a3320
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x178], ecx
lea ecx, [esp + 0x2c]
call fcn.00636d30
xor edx, edx
cmp edx, eax
sbb ecx, ecx
and ecx, eax
lea eax, [ecx + 0xd8]
mov ecx, 0x1000
cmp eax, ecx
mov dword [esp + 0x150], eax
ja 0x6a0713
mov dword [esp + 0x150], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xbc], ebx
push ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ebx
call fcn.0069adc0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
mov word [esp + 0x9a], ax
push ebx
push ebx
push ebx
push edi
call esi
mov edi, dword [esp + 0x210]
push ebx
push ebx
push ebx
push edi
call esi
mov edx, dword [esp + 0x110]
push 1
or edx, 1
mov dword [esp + 0x114], edx
lea edx, [esp + 0xf0]
push edx
push edi
call fcn.00698c00
add esp, 0xc
test eax, eax
je 0x6a0ede
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xcd]
mov byte [esp + 0xcc], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20c]
push 1
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push ebx
push ecx
call esi
mov edx, dword [esp + 0x20c]
push ebx
push ebx
push ebx
push edx
mov ebp, eax
call esi
mov eax, dword [esp + 0x20c]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x6a0816
mov eax, dword [esp + 0x20c]
lea ecx, [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0xd4]
push 0x20
push edx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6a0816
cmp dword [esp + 0x20], 0x20
jne 0x6a0816
mov edi, 1
mov edx, dword [esp + 0x20c]
lea ecx, [esp + 0x14]
push ebx
push ecx
push ebp
push edx
call esi
cmp edi, ebx
je 0x6a0ef4
lea eax, [esp + 0xcc]
push eax
call fcn.0069be40
add esp, 4
test eax, eax
je 0x6a0f0a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9de1c0], ebx
call edi
lea ecx, [esp + 0xcc]
mov dword [0x9de1c8], eax
test ecx, ecx
jne 0x6a089b
mov dword [0x9de1c0], 1
mov dword [0x9de1c4], 0x269
call edi
mov dword [0x9de1c8], eax
mov dword [0x9de1c0], 0x1f
mov dword [0x9de1c4], 0xcb8
call edi
jmp 0x6a0f50
cmp dword [0x9de1cc], ebx
jne 0x6a08b9
mov dword [0x9de1c0], 2
mov dword [0x9de1c4], 0x26f
jmp 0x6a0879
cmp dword [0x9de6f4], ebx
jne 0x6a090f
mov cl, byte [esp + 0xd2]
mov eax, dword [esp + 0xdc]
mov edx, dword [0x9de1d8]
and ecx, 1
cmp eax, 0x2710
ja 0x6a08ed
cmp edx, 0x2710
ja 0x6a090f
cmp edx, eax
jne 0x6a08fd
jmp 0x6a090f
cmp eax, edx
jne 0x6a08fd
cmp dword [0x9de1e0], ebx
ja 0x6a090f
cmp ecx, ebx
je 0x6a090f
push ecx
push eax
call fcn.0069c0a0
add esp, 8
cmp eax, ebx
je 0x6a0880
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1bd]
mov byte [esp + 0x1bc], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x150]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x214]
push ebx
push edx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x94], 0x40
mov dword [esp + 0x8c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x98], ebx
call esi
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x6a0a36
lea ecx, [esp + 0x84]
lea edx, [esp + 0x1bc]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x44]
push edx
mov edx, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x40]
push 0x200
push ecx
mov ecx, dword [esp + 0x22c]
push edx
push eax
push ecx
push ebx
mov dword [esp + 0xac], ebx
call fcn.006a2400
add esp, 0x30
xor edx, edx
cmp eax, ebx
sete dl
mov esi, edx
cmp esi, ebx
mov dword [esp + 0x74], esi
jne 0x6a0d34
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
cmp ecx, eax
ja 0x6a0c0e
jae 0x6a0a1a
mov dword [esp + 0x30], 1
cmp ecx, ebx
jbe 0x6a0ae9
mov esi, dword [esp + 0x34]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x6a0ae0
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20c]
lea ecx, [esp + 0x10]
push ebx
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6a0c27
mov ecx, dword [esp + 0x10]
cmp ecx, esi
jae 0x6a0a6c
mov dword [esp + 0x30], 1
cmp ecx, ebx
jbe 0x6a0ae9
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0067ea20
add esp, 4
cmp eax, ebx
je 0x6a0c40
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], ebx
push ecx
mov ecx, dword [esp + 0x28]
push 0x200
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x98]
push ecx
lea ecx, [esp + 0x1d4]
push ecx
mov ecx, eax
call dword [edx + 0x14]
cmp eax, ebx
je 0x6a0c59
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
cmp eax, ecx
jne 0x6a0c72
mov esi, dword [esp + 0x24]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ebp, ecx
add eax, ecx
cmp eax, 0x1000
mov dword [esp + 0x14], eax
jae 0x6a0b06
cmp dword [esp + 0x30], ebx
je 0x6a0985
lea eax, [esp + 0x88]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x7c]
push ecx
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push 0x1000
push edx
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0x198]
push eax
mov eax, dword [esp + 0xbc]
push ecx
push edx
push eax
mov dword [esp + 0xa4], ebx
call fcn.00691c60
add esp, 0x2c
cmp eax, ebx
jne 0x6a0c8b
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x9c]
push ecx
push edx
push eax
call fcn.00699a70
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x38]
mov esi, eax
mov eax, dword [esp + 0x210]
push ebx
push ecx
push esi
push edx
push eax
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6a0cfa
cmp dword [esp + 0x38], esi
jb 0x6a0d10
cmp dword [esp + 0xbc], ebx
jne 0x6a0bbc
mov dword [esp + 0xc0], esi
mov edi, dword [esp + 0xbc]
mov ebp, dword [esp + 0x40]
inc edi
mov ecx, 0x400
mov dword [esp + 0xbc], edi
xor eax, eax
mov edi, ebp
mov dword [esp + 0xc4], esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, ecx
mov dword [esp + 0x14], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x30], ebx
je 0x6a0985
mov esi, dword [esp + 0x74]
jmp 0x6a0d34
mov dword [0x9de1c0], 0x20
mov dword [0x9de1c4], 0xce6
jmp 0x6a0d24
mov dword [0x9de1c0], 0xd
mov dword [0x9de1c4], 0xcfb
jmp 0x6a0d24
mov dword [0x9de1c0], 0xc
mov dword [0x9de1c4], 0xd0a
jmp 0x6a0d24
mov dword [0x9de1c0], 0x12
mov dword [0x9de1c4], 0xd13
jmp 0x6a0d24
mov dword [0x9de1c0], 0x12
mov dword [0x9de1c4], 0xd1a
jmp 0x6a0d24
jge 0x6a0ce4
push 0x9b5220
lea ecx, [esp + 0x18]
call fcn.00617650
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
push 0xd33
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str.Error:_Encrypt_Data_Failed__File__Algrithm_d__DataLen_lu_KeyLen_lu__LINE_d
push eax
mov byte [esp + 0x21c], 3
call fcn.0061aed0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.006a5ed0
add esp, 0x1c
lea ecx, [esp + 0x14]
mov byte [esp + 0x204], 2
call fcn.00617ec0
mov dword [0x9de1c0], 0x11
mov dword [0x9de1c4], 0xd37
jmp 0x6a0d24
mov dword [0x9de1c0], 0xe
mov dword [0x9de1c4], 0xd42
jmp 0x6a0d24
mov dword [0x9de1c0], 0xe
mov dword [0x9de1c4], 0xd4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9de1c8], eax
mov esi, 1
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x6a0d49
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x6a0d5e
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x6a0d73
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x6a0d88
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x30], ebx
je 0x6a0f55
cmp esi, ebx
jne 0x6a0f55
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0xec]
push eax
push ecx
call fcn.006983a0
mov esi, dword [esp + 0x218]
lea edx, [esp + 0x34]
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0xa4]
push ecx
lea eax, [esp + 0x140]
push edx
lea ecx, [esp + 0x104]
push eax
push ecx
push esi
call fcn.006985c0
add esp, 0x24
test eax, eax
je 0x6a0f20
cmp dword [esp + 0x218], ebx
je 0x6a0e09
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esp + 0x64], 1
jmp 0x6a0f55
mov dword [0x9de1c0], 1
mov dword [0x9de1c4], 0xc16
call esi
mov dword [0x9de1c8], eax
jmp 0x6a0f66
mov dword [0x9de1c0], 8
mov dword [0x9de1c4], 0xc1d
call esi
mov dword [0x9de1c8], eax
jmp 0x6a0f66
mov dword [0x9de1c0], 0xb
mov dword [0x9de1c4], 0xc33
call esi
mov dword [0x9de1c8], eax
jmp 0x6a0f66
mov dword [0x9de1c0], 0xc
mov dword [0x9de1c4], 0xc3b
call esi
mov dword [0x9de1c8], eax
jmp 0x6a0f66
mov dword [0x9de1c0], 0x25
mov dword [0x9de1c4], 0xc4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9de1c8], eax
jmp 0x6a0f66
mov dword [0x9de1c0], 0x20
mov dword [0x9de1c4], 0xc5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9de1c8], eax
jmp 0x6a0f66
mov dword [0x9de1c0], 0x10
mov dword [0x9de1c4], 0xc98
jmp 0x6a0f4a
mov dword [0x9de1c0], 0xf
mov dword [0x9de1c4], 0xca8
jmp 0x6a0f4a
mov dword [0x9de1c0], 0x14
mov dword [0x9de1c4], 0xcb1
jmp 0x6a0f4a
mov dword [0x9de1c0], 0x10
mov dword [0x9de1c4], 0xd77
jmp 0x6a0f4a
mov dword [0x9de1c0], 0x21
mov dword [0x9de1c4], 0xc6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x9de1c8], eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x6a0f66
push eax
call fcn.008325dd
add esp, 4
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, ebx
je 0x6a0f7c
push eax
call fcn.008325dd
add esp, 4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x200], 1
call fcn.00636c90
lea ecx, [esp + 0x40]
mov byte [esp + 0x200], bl
call fcn.00636c90
lea ecx, [esp + 0x48]
mov dword [esp + 0x200], 0xffffffff
call fcn.00636c90
mov eax, dword [esp + 0x60]
jmp 0x6a0fd7
mov dword [0x9de1c0], 1
mov dword [0x9de1c4], 0xbe9
call esi
mov dword [0x9de1c8], eax
mov eax, 1
mov ecx, dword [esp + 0x1f8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1f8
ret