Function at 0x10065404
Capabilities:
Get file size

Disassembly:
mov eax, 0x10139054
call fcn.1007db34
sub esp, 0xfcc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.100680fb
mov eax, dword [ebp + 8]
pop ecx
cmp eax, ebx
je 0x10065f13
cmp word [eax], bx
je 0x10065f13
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10065f13
cmp word [eax], bx
je 0x10065f13
cmp dword [ebp + 0x10], ebx
je 0x10065f13
cmp dword [0x101aef34], ebx
jne 0x10065465
push 0x13e5
push 2
jmp 0x10065f1a
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0xac]
mov dword [ebp - 0xb0], ebx
or dword [ebp - 0x10], 0xffffffff
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
mov esi, 0x80
push eax
push 0x60
push 1
push 1
mov edi, 0x120089
push esi
push edi
mov dword [ebp - 0x48], ebx
push dword [ebp + 8]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x74], ebx
call fcn.10072edf
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x100654de
cmp dword [ebp - 0x74], 0xc0000034
je 0x10065e59
push ebx
push 0x60
push 1
push 7
push esi
push edi
push dword [ebp + 8]
call fcn.10072edf
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10065e61
lea eax, [ebp - 0xb0]
push 0x28
push eax
push dword [ebp - 0x14]
call fcn.10073251
add esp, 0xc
test eax, eax
je 0x10065e72
mov ecx, 0xe1
xor eax, eax
lea edi, [ebp - 0xbf7]
mov byte [ebp - 0xbf8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x49f]
mov byte [ebp - 0x4a0], bl
push ebx
rep stosd dword es:[edi], eax
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x58], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xf7
xor eax, eax
lea edi, [ebp - 0xfd7]
mov byte [ebp - 0xfd8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xfd8]
push 0x3e0
push eax
push dword [ebp - 0x14]
call fcn.10066a8d
add esp, 0xc
test eax, eax
je 0x100657d0
lea eax, [ebp - 0xfd8]
push eax
call fcn.1006bd8c
cmp eax, 3
pop ecx
mov dword [ebp - 0x50], eax
jne 0x10065652
lea eax, [ebp - 0xbf8]
push eax
lea eax, [ebp - 0xfd8]
push eax
call fcn.1006b7ad
pop ecx
test eax, eax
pop ecx
je 0x100657dc
lea eax, [ebp - 0xbf8]
push eax
call fcn.10071139
test eax, eax
pop ecx
je 0x100657e8
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], ebx
push eax
lea eax, [ebp - 0x4a0]
push 0x40
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xbf8]
push eax
call fcn.10071783
add esp, 0x14
test eax, eax
je 0x100657f4
push dword [ebp - 0x64]
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x58], eax
je 0x10065800
cmp dword [ebp - 0x878], ebx
je 0x10065652
cmp dword [ebp + 0x20], ebx
je 0x10065652
push dword [ebp - 0x878]
call fcn.1007e238
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x30], edi
je 0x10065652
push dword [ebp - 0x878]
push ebx
push edi
call fcn.1007e1e0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
push dword [ebp - 0x878]
push edi
push ebx
push dword [ebp - 0x14]
call fcn.10065fbd
add esp, 0x20
test eax, eax
jne 0x10065652
push edi
call fcn.1007de95
pop ecx
mov dword [ebp - 0x30], ebx
push ebx
push 0x60
push 3
push 1
mov edi, 0x12019f
push esi
push edi
push dword [ebp + 0xc]
call fcn.10072edf
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1006569e
push 1
push ebx
push dword [ebp + 0xc]
call fcn.100732ab
push ebx
push 0x60
push 1
push 7
push esi
push edi
push dword [ebp + 0xc]
call fcn.10072edf
add esp, 0x28
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x10065e81
mov ecx, 0xf3
xor eax, eax
lea edi, [ebp - 0x86f]
mov byte [ebp - 0x870], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x870]
mov dword [ebp - 0x6c], 1
push eax
call fcn.1006aba6
test eax, eax
pop ecx
je 0x10065e8a
mov ecx, 0xdb
xor eax, eax
lea edi, [ebp - 0x45f]
mov byte [ebp - 0x460], bl
rep stosd dword es:[edi], eax
push dword [ebp + 0x18]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x460]
push eax
call fcn.1006ac1d
pop ecx
test eax, eax
pop ecx
je 0x10065e93
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0xef]
mov byte [ebp - 0xf0], bl
mov dword [ebp - 0x40], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push 0x40
push eax
push dword [ebp - 0x204]
push dword [ebp - 0x20c]
push dword [ebp - 0x340]
call fcn.10070f4a
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x3c], eax
je 0x10065e9c
push eax
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x68], eax
je 0x10065ea5
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov edi, eax
mov dword [ebp + 0x20], edi
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x50], 3
jne 0x1006580c
mov eax, dword [ebp - 0xbe8]
mov ecx, dword [ebp - 0xbdc]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0xbe0]
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], ecx
jmp 0x10065842
push 0x1429
push 0xf
jmp 0x10065e79
push 0x1435
push 0x14
jmp 0x10065e79
push 0x143c
push 0x1f
jmp 0x10065e79
push 0x1445
push 0xb
jmp 0x10065e79
push 0x144e
push 0xc
jmp 0x10065e79
push dword [ebp - 0x14]
call fcn.10071121
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x4c]
pop ecx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], eax
cmp dword [ebp + 0x14], ebx
je 0x1006585b
push dword [ebp + 0x14]
call fcn.1007e283
test eax, eax
pop ecx
jbe 0x1006585b
push 0x77
push dword [ebp + 0x14]
jmp 0x10065872
mov edi, dword [ebp + 8]
push 0x5c
push edi
call fcn.1007e6f5
pop ecx
cmp eax, ebx
pop ecx
je 0x1006586f
lea edi, [eax + 2]
push 0x77
push edi
lea eax, [ebp - 0x430]
push eax
call fcn.1007e246
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
call fcn.1006abdb
pop ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call esi
mov edi, 0x3d0
lea eax, [ebp - 0x870]
push edi
push eax
push dword [ebp - 0x10]
call fcn.10066afd
add esp, 0xc
test eax, eax
je 0x10065eae
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0xf0]
push dword [ebp - 0x40]
mov dword [ebp - 0x28], ebx
push eax
call fcn.10074cd3
mov eax, dword [ebp - 0x440]
add esp, 0xc
or eax, dword [ebp - 0x43c]
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x314], ebx
jne 0x1006591f
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x18], ebx
jmp 0x10065c8c
xor eax, eax
cmp dword [ebp - 0x50], 3
lea edi, [ebp - 0x78]
mov dword [ebp - 0x7c], ebx
stosd dword es:[edi], eax
jne 0x1006595e
cmp dword [ebp - 0xbbc], 1
mov eax, dword [ebp - 0xbb4]
je 0x10065943
mov eax, dword [ebp - 0xbb8]
push ebx
push ebx
push dword [ebp - 0xbc0]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xbc0]
mov dword [ebp - 0x7c], eax
jmp 0x1006597d
cmp dword [ebp - 0x4c], ebx
mov eax, 0x10000
jne 0x10065972
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
mov dword [ebp - 0x1c], ecx
jb 0x10065975
mov dword [ebp - 0x1c], eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x1c]
call fcn.1007e238
pop ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x68]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
add eax, 0x10
push eax
mov dword [ebp - 0x70], eax
call fcn.1007e238
pop ecx
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x84]
push ebx
push ecx
push eax
mov dword [ebp - 0x38], ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x80], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x88], eax
call esi
push 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ebx
pop edi
mov esi, dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x24]
call fcn.1007e1e0
push dword [ebp - 0x70]
push ebx
push dword [ebp + 0x20]
call fcn.1007e1e0
mov eax, dword [ebp + 0x20]
add esp, 0x18
cmp dword [ebp - 0x50], 3
mov dword [eax], ebx
mov eax, dword [ebp + 0x20]
mov dword [eax + 8], ebx
mov eax, dword [ebp + 0x20]
mov dword [eax + 4], ebx
mov dword [ebp + 0x14], ebx
jne 0x10065ae1
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xbbc]
mov esi, dword [ebp - 0xbb8]
jne 0x10065a39
mov esi, dword [ebp - 0xbb4]
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x54], esi
jae 0x10065a61
cmp dword [ebp + 0x18], ebx
je 0x10065a4c
push dword [ebp + 0x18]
call fcn.1007de95
pop ecx
push esi
mov dword [ebp - 0x54], esi
call fcn.1007e238
cmp eax, ebx
pop ecx
mov dword [ebp + 0x18], eax
je 0x10065b9f
push dword [ebp - 0x54]
push ebx
push dword [ebp + 0x18]
call fcn.1007e1e0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x14]
push ebx
push eax
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x14]
call fcn.1007354a
add esp, 0x24
test eax, eax
je 0x10065bce
cmp dword [ebp + 0x14], esi
jb 0x10065bce
mov eax, dword [ebp + 0x18]
add esi, 0xfffffffc
push dword [eax]
lea edi, [eax + 4]
push esi
push edi
call fcn.10074c8c
add esp, 0xc
test eax, eax
je 0x10065bab
lea edx, [ebp + 0x14]
mov ecx, dword [ebp - 0x58]
push edx
lea edx, [ebp - 0x4a0]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [ebp + 0x14], ebx
push dword [ebp - 0x24]
push esi
push edi
push dword [ebp - 0x60]
push edx
call dword [eax + 0x14]
cmp eax, ebx
je 0x10065bb4
push 1
pop edi
jmp 0x10065b12
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x14]
push ebx
push eax
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call fcn.1007354a
add esp, 0x18
test eax, eax
je 0x10065bd7
cmp dword [ebp + 0x14], esi
jae 0x10065b12
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0x34], edi
je 0x10065c4e
lea eax, [ebp - 0x80]
mov dword [ebp - 0x44], ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0xf0]
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push eax
push dword [ebp - 0x68]
call fcn.1006b409
add esp, 0x28
cmp eax, ebx
jne 0x10065bde
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
push dword [ebp - 0x44]
push dword [ebp + 0x20]
push dword [ebp - 0x10]
call fcn.10073654
add esp, 0x14
test eax, eax
je 0x10065c39
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x5c], eax
jb 0x10065c40
inc dword [ebp - 0x318]
add dword [ebp - 0x320], eax
adc dword [ebp - 0x31c], ebx
add dword [ebp - 0x2c], eax
adc dword [ebp - 0x28], ebx
cmp dword [ebp - 0x34], ebx
je 0x100659e2
jmp 0x10065c4e
push 0x1556
push 0x21
jmp 0x10065c2d
push 0x1568
push 0x1c
jmp 0x10065bbb
push 0x1572
push 0x12
call fcn.100680dd
pop ecx
mov dword [ebp - 0x18], 1
pop ecx
jmp 0x10065c4e
push 0x1560
push 0xd
jmp 0x10065c2d
push 0x157c
jmp 0x10065bd3
jge 0x10065c26
push 0x1019f4bc
lea ecx, [ebp - 0x20]
call fcn.10094520
push 0x1591
lea eax, [ebp - 0x20]
push dword [ebp - 0x40]
mov dword [ebp - 4], ebx
push dword [ebp + 0x14]
push dword [ebp - 0x3c]
push dword [ebp + 8]
push str.Error:_Encrypt_Data_Failed__File_s__Algrithm_d__DataLen_lu_KeyLen_lu__LINE_d
push eax
call fcn.10097c40
push dword [ebp - 0x20]
call fcn.10072272
or dword [ebp - 4], 0xffffffff
add esp, 0x20
lea ecx, [ebp - 0x20]
call fcn.10094cc0
push 0x1595
push 0x11
call fcn.100680dd
pop ecx
mov dword [ebp - 0x18], edi
pop ecx
jmp 0x10065c4e
push 0x159d
jmp 0x10065c45
push 0x15a3
push 0xe
call fcn.100680dd
pop ecx
pop ecx
cmp dword [ebp + 0x18], ebx
je 0x10065c5c
push dword [ebp + 0x18]
call fcn.1007de95
pop ecx
cmp dword [ebp - 0x24], ebx
je 0x10065c6a
push dword [ebp - 0x24]
call fcn.1007de95
pop ecx
cmp dword [ebp + 0x20], ebx
je 0x10065c7b
push dword [ebp + 0x20]
call fcn.1007de95
pop ecx
mov dword [ebp + 0x20], ebx
cmp dword [ebp - 0x38], ebx
je 0x10065c8c
push dword [ebp - 0x38]
call fcn.1007de95
pop ecx
mov dword [ebp - 0x38], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x34], ebx
je 0x10065ecc
cmp dword [ebp - 0x18], ebx
jne 0x10065ecc
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x120], ebx
cmp esi, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x114], ebx
jne 0x10065cd9
mov esi, dword [ebp + 0x1c]
cmp esi, ebx
je 0x10065d54
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
lea eax, [eax + eax + 0x7a]
push eax
lea eax, [ebp - 0x120]
push esi
push eax
push dword [ebp - 0x850]
push dword [ebp - 0x10]
call fcn.100672a2
add esp, 0x14
test eax, eax
je 0x10065d46
or dword [ebp - 0x84c], 4
push esi
call fcn.10074d62
test eax, eax
pop ecx
jne 0x10065d23
or dword [ebp - 0x84c], 1
add esi, 0x10
push esi
call fcn.10074d62
test eax, eax
pop ecx
jne 0x10065d38
or dword [ebp - 0x84c], 2
mov edi, dword [ebp - 0x2c]
add edi, dword [ebp - 0x118]
adc dword [ebp - 0x28], ebx
jmp 0x10065d57
push 0x15dc
push 0x10
call fcn.100680dd
pop ecx
pop ecx
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0xf8], ebx
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
imul eax, eax, 0x88
add eax, dword [esi + 0x64]
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xfc], ebx
lea eax, [ecx + eax*2 + 0x82]
push eax
lea eax, [ebp - 0x108]
push esi
push eax
push dword [ebp - 0x850]
push dword [ebp - 0x10]
call fcn.100672a2
add esp, 0x14
test eax, eax
je 0x10065de2
add dword [ebp - 0x848], 4
push esi
call fcn.10074d62
test eax, eax
pop ecx
jne 0x10065dcb
or dword [ebp - 0x848], 1
cmp dword [ebp + 0x24], ebx
je 0x10065dd7
or dword [ebp - 0x848], 2
add edi, dword [ebp - 0x100]
adc dword [ebp - 0x28], ebx
jmp 0x10065df0
push 0x15fa
push 0x10
call fcn.100680dd
pop ecx
pop ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x870]
push eax
call fcn.1006abfc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x870]
push eax
call fcn.1006b1b5
add esp, 0xc
test eax, eax
je 0x10065eb5
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x870]
push 0x3d0
push eax
push dword [ebp - 0x10]
call fcn.10066afd
add esp, 0xc
test eax, eax
je 0x10065ebe
mov dword [ebp - 0x48], 1
jmp 0x10065ecc
push 1
pop eax
jmp 0x10065f23
push 0x140e
push 3
call fcn.100680dd
jmp 0x10065f0c
push 0x1416
push 5
call fcn.100680dd
pop ecx
jmp 0x10065ed9
push 0x1483
push 4
jmp 0x10065ec5
push 0x148d
push 9
jmp 0x10065ec5
push 0x1495
push 8
jmp 0x10065ec5
push 0x14a5
push 0xb
jmp 0x10065ec5
push 0x14ac
push 0xc
jmp 0x10065ec5
push 0x14e9
jmp 0x10065ec3
push 0x1607
push 0x13
jmp 0x10065ec5
push 0x160f
push 0x10
call fcn.100680dd
pop ecx
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x10065eda
push dword [ebp - 0x30]
call fcn.1007de95
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x10065ee9
push dword [ebp - 0x14]
call dword [0x101aebd0]
cmp dword [ebp - 0x10], 0xffffffff
je 0x10065ef8
push dword [ebp - 0x10]
call dword [0x101aebd0]
cmp dword [ebp - 0x48], ebx
jne 0x10065f0e
cmp dword [ebp - 0x6c], ebx
je 0x10065f0e
push 1
push dword [ebp + 0xc]
call fcn.10073484
pop ecx
pop ecx
mov eax, dword [ebp - 0x48]
jmp 0x10065f23
push 0x13df
push 1
call fcn.100680dd
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret