Function at 0x4864d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x30d
push 0
push 0
dec ecx
jne 0x4864d9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x82c]
push ecx
mov ecx, 0x200
rep movsd dword es:[edi], dword [esi]
pop ecx
mov word [ebp - 4], cx
mov word [ebp - 2], dx
mov esi, eax
lea edi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x486c87
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x102c]
call fcn.00483de4
xor eax, eax
mov dword [edi], eax
movzx eax, word [ebp - 4]
mov edx, eax
shr edx, 6
mov dword [ebp - 0x14], edx
and eax, 0x3f
test eax, eax
je 0x486543
inc dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 0x486ca4
call fcn.004041cc
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00483bdc
mov edx, eax
lea eax, [ebp - 0x1830]
call fcn.0040431c
mov edx, dword [ebp - 0x1830]
lea eax, [ebp - 0xc]
call fcn.004043fc
xor edx, edx
push ebp
push 0x486c37
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push edi
mov eax, dword [ebp - 0xc]
call fcn.004043f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004045f4
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4865b6
mov dword [ebp - 0x18], 1
call fcn.0040bdbc
xor ecx, ecx
mov dl, 1
mov eax, dword [0x484660]
call fcn.00464bec
mov ebx, eax
mov edx, 0x486cb4
mov eax, ebx
call fcn.00484848
mov eax, ebx
call fcn.00468f44
mov eax, ebx
call fcn.0044cb88
xor eax, eax
mov dword [edi], eax
jmp 0x486617
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00484964
push 0
push edi
push 0x50
lea eax, [ebp - 0x102c]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x48660b
call fcn.0040bdbc
mov eax, dword [0x49287c]
mov eax, dword [eax]
call fcn.0046c318
cmp dword [ebp - 0x20], 0x64
jge 0x486622
cmp dword [edi], 0x15
jb 0x4865e6
mov eax, ebx
call fcn.004033e4
cmp dword [ebp - 0x20], 0x64
jl 0x486643
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x486c61
cmp dword [edi], 0x15
je 0x486654
mov dword [ebp - 0x18], 2
call fcn.0040bdbc
xor ecx, ecx
mov cl, byte [ebp - 0x102b]
sub ecx, 2
xor edx, edx
lea eax, [ebp - 0x102c]
call fcn.00483c3c
xor edx, edx
mov dl, byte [ebp - 0x102b]
cmp al, byte [ebp + edx - 0x102d]
je 0x486689
mov dword [ebp - 0x18], 3
call fcn.0040bdbc
push 0x486cc4
mov al, 0x46
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x1834]
call fcn.0040431c
push dword [ebp - 0x1834]
mov al, 0x77
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x1838]
call fcn.0040431c
push dword [ebp - 0x1838]
movzx ebx, word [ebp - 4]
mov eax, ebx
and eax, 0xff
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x183c]
call fcn.0040431c
push dword [ebp - 0x183c]
mov eax, ebx
shr eax, 8
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x1840]
call fcn.0040431c
push dword [ebp - 0x1840]
movzx eax, word [ebp - 2]
and eax, 0xff
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x1844]
call fcn.0040431c
push dword [ebp - 0x1844]
movzx eax, word [ebp - 2]
and eax, 0xff
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x1848]
call fcn.0040431c
push dword [ebp - 0x1848]
mov al, 0x12
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x184c]
call fcn.0040431c
push dword [ebp - 0x184c]
mov al, 0x34
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x1850]
call fcn.0040431c
push dword [ebp - 0x1850]
lea eax, [ebp - 0xc]
mov edx, 9
call fcn.004044b4
mov ecx, 0xe
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00483bdc
mov edx, eax
lea eax, [ebp - 0x1854]
call fcn.0040431c
mov edx, dword [ebp - 0x1854]
lea eax, [ebp - 0xc]
call fcn.004043fc
push 0
push edi
mov eax, dword [ebp - 0xc]
call fcn.004043f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004045f4
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4867dd
mov dword [ebp - 0x18], 4
call fcn.0040bdbc
lea eax, [ebp - 0x102c]
call fcn.00483de4
mov ebx, 0x15
xor eax, eax
mov dword [edi], eax
push 0x14
call sub.kernel32.dll_Sleep
push 0
push edi
push 0x50
lea eax, [ebp - 0x102c]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x486813
call fcn.0040bdbc
cmp dword [edi], 0
ja 0x48681b
dec ebx
jne 0x4867ed
cmp dword [edi], 0x10
je 0x48682c
mov dword [ebp - 0x18], 5
call fcn.0040bdbc
xor ecx, ecx
mov cl, byte [ebp - 0x102b]
sub ecx, 2
xor edx, edx
lea eax, [ebp - 0x102c]
call fcn.00483c3c
xor edx, edx
mov dl, byte [ebp - 0x102b]
cmp al, byte [ebp + edx - 0x102d]
je 0x486861
mov dword [ebp - 0x18], 6
call fcn.0040bdbc
push 0x32
call sub.kernel32.dll_Sleep
xor ebx, ebx
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x28], eax
lea eax, [ebx + 7]
mov al, byte [ebp + eax - 0x102c]
call fcn.004849e0
mov edx, dword [ebp - 0x28]
mov byte [edx], al
inc ebx
inc dword [ebp - 0x28]
cmp ebx, 8
jne 0x486873
lea eax, [ebp - 0x182c]
call fcn.00483b38
lea eax, [ebp - 0xc]
mov edx, 0x486cd4
call fcn.004041cc
mov ebx, 8
lea eax, [ebp - 0x182c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov al, byte [eax]
call fcn.004849e0
mov edx, eax
lea eax, [ebp - 0x1858]
call fcn.0040431c
mov edx, dword [ebp - 0x1858]
lea eax, [ebp - 0xc]
call fcn.004043fc
inc dword [ebp - 0x2c]
dec ebx
jne 0x4868b6
mov ecx, 0xe
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00483bdc
mov edx, eax
lea eax, [ebp - 0x185c]
call fcn.0040431c
mov edx, dword [ebp - 0x185c]
lea eax, [ebp - 0xc]
call fcn.004043fc
push 0
push edi
mov eax, dword [ebp - 0xc]
call fcn.004043f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004045f4
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x486939
mov dword [ebp - 0x18], 7
call fcn.0040bdbc
lea eax, [ebp - 0x102c]
call fcn.00483de4
mov ebx, 0x33
xor eax, eax
mov dword [edi], eax
push 0x14
call sub.kernel32.dll_Sleep
push 0
push edi
push 0x50
lea eax, [ebp - 0x102c]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x48696f
call fcn.0040bdbc
cmp dword [edi], 0
ja 0x486977
dec ebx
jne 0x486949
xor ecx, ecx
mov cl, byte [ebp - 0x102b]
sub ecx, 2
xor edx, edx
lea eax, [ebp - 0x102c]
call fcn.00483c3c
xor edx, edx
mov dl, byte [ebp - 0x102b]
cmp al, byte [ebp + edx - 0x102d]
je 0x4869ac
mov dword [ebp - 0x18], 8
call fcn.0040bdbc
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x486c2d
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
push 0x32
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0xc]
mov edx, 0x486ce4
call fcn.004041cc
xor ebx, ebx
lea eax, [ebp - 0x1860]
mov edx, dword [ebp - 0x10]
shl edx, 6
add edx, ebx
mov dl, byte [ebp + edx - 0x82c]
not dl
call fcn.0040431c
mov edx, dword [ebp - 0x1860]
lea eax, [ebp - 0xc]
call fcn.004043fc
inc ebx
cmp ebx, 0x40
jne 0x4869d9
mov ecx, 0x40
mov edx, 6
mov eax, dword [ebp - 0xc]
call fcn.00484354
mov edx, eax
lea eax, [ebp - 0x1864]
call fcn.0040431c
mov edx, dword [ebp - 0x1864]
lea eax, [ebp - 0xc]
call fcn.004043fc
mov ecx, 0x47
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00483bdc
mov edx, eax
lea eax, [ebp - 0x1868]
call fcn.0040431c
mov edx, dword [ebp - 0x1868]
lea eax, [ebp - 0xc]
call fcn.004043fc
push 0
push edi
mov eax, dword [ebp - 0xc]
call fcn.004043f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004045f4
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x486a8e
mov dword [ebp - 0x18], 9
call fcn.0040bdbc
lea eax, [ebp - 0x102c]
call fcn.00483de4
mov ebx, 0x33
xor eax, eax
mov dword [edi], eax
push 0x14
call sub.kernel32.dll_Sleep
push 0
push edi
push 0x50
lea eax, [ebp - 0x102c]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x486ac4
call fcn.0040bdbc
cmp dword [edi], 0
ja 0x486acc
dec ebx
jne 0x486a9e
xor ecx, ecx
mov cl, byte [ebp - 0x102b]
sub ecx, 2
xor edx, edx
lea eax, [ebp - 0x102c]
call fcn.00483c3c
xor edx, edx
mov dl, byte [ebp - 0x102b]
cmp al, byte [ebp + edx - 0x102d]
je 0x486b01
mov dword [ebp - 0x18], 0xa
call fcn.0040bdbc
lea eax, [ebp - 0xc]
mov edx, 0x486cf4
call fcn.004041cc
mov ecx, 6
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00483bdc
mov edx, eax
lea eax, [ebp - 0x186c]
call fcn.0040431c
mov edx, dword [ebp - 0x186c]
lea eax, [ebp - 0xc]
call fcn.004043fc
push 0
push edi
mov eax, dword [ebp - 0xc]
call fcn.004043f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004045f4
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x486b66
mov dword [ebp - 0x18], 0xb
call fcn.0040bdbc
lea eax, [ebp - 0x102c]
call fcn.00483de4
mov ebx, 0x33
xor eax, eax
mov dword [edi], eax
push 0x14
call sub.kernel32.dll_Sleep
push 0
push edi
push 0x50
lea eax, [ebp - 0x102c]
push eax
push esi
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x486b9c
call fcn.0040bdbc
cmp dword [edi], 0
ja 0x486ba4
dec ebx
jne 0x486b76
mov al, byte [ebp - 0x1025]
not al
cmp al, 0x55
jne 0x486bbc
mov dword [ebp - 0x18], 0xc
call fcn.0040bdbc
mov al, byte [ebp - 0x1025]
not al
cmp al, 0x3c
jne 0x486bd4
mov dword [ebp - 0x18], 0xd
call fcn.0040bdbc
mov al, byte [ebp - 0x1025]
not al
cmp al, 0x5a
je 0x486bec
mov dword [ebp - 0x18], 0xe
call fcn.0040bdbc
xor ecx, ecx
mov cl, byte [ebp - 0x102b]
sub ecx, 2
xor edx, edx
lea eax, [ebp - 0x102c]
call fcn.00483c3c
xor edx, edx
mov dl, byte [ebp - 0x102b]
cmp al, byte [ebp + edx - 0x102d]
je 0x486c21
mov dword [ebp - 0x18], 0xf
call fcn.0040bdbc
inc dword [ebp - 0x10]
dec dword [ebp - 0x24]
jne 0x4869c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x486c61
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486c8e
lea eax, [ebp - 0x1870]
mov edx, 0x11
call fcn.00404158
lea eax, [ebp - 0xc]
call fcn.00404134
ret