Function at 0x1001c400
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x198
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x1a4]
push esi
push edi
mov dword [esp + 0x34], ebp
mov esi, ecx
mov ebx, edx
mov byte [esp + 0x17], 0
mov byte [esp + 0x148], 0
mov dword [esp + 0x149], eax
mov dword [esp + 0x14d], eax
mov dword [esp + 0x151], eax
mov word [esp + 0x155], ax
mov byte [esp + 0x157], al
mov byte [esp + 0x138], al
mov dword [esp + 0x139], eax
mov dword [esp + 0x13d], eax
mov dword [esp + 0x141], eax
mov word [esp + 0x145], ax
mov byte [esp + 0x147], al
call fcn.1001beb0
mov edi, eax
test edi, edi
je 0x1001c4ad
cmp edi, 2
je 0x1001c4ad
cmp edi, 1
je 0x1001c4a3
cmp edi, 3
jne 0x1001c757
mov dword [esp + 0x20], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_______:___
jmp 0x1001c4b5
mov dword [esp + 0x20], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + 0xc9], 0
mov dword [esp + 0x3c], eax
je 0x1001c4d4
mov al, 1
jmp 0x1001c759
test esi, esi
je 0x1001c757
test ebx, ebx
je 0x1001c757
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call ebp
mov esi, eax
or ecx, 0xffffffff
mov dword [esp + 0x38], esi
cmp esi, ecx
je 0x1001c751
xor eax, eax
cmp edi, eax
jne 0x1001c55d
lea ecx, [esp + 0x2c]
push ecx
push eax
push eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.100e67b0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x784ce0
xor eax, eax
jmp 0x1001c565
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
push 0x10
lea eax, [esp + 0x154]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
call ebp
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x1001c746
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x10
lea edx, [esp + 0x144]
push edx
push eax
call esi
mov eax, dword [0x101dd388]
push 0x19
push eax
call dword [0x101dd384]
mov ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
mul ecx
mov ebx, edx
shr ebx, 5
xor ebp, ebp
mov dword [esp + 0x1c], edi
cmp ecx, edi
jbe 0x1001c73b
mov esi, dword [esp + 0x28]
xor eax, eax
push esi
mov byte [esp + 0x15c], 0
mov dword [esp + 0x15d], eax
mov dword [esp + 0x161], eax
mov dword [esp + 0x165], eax
mov word [esp + 0x169], ax
mov byte [esp + 0x16b], al
call fcn.100d0bf0
dec esi
add esp, 4
mov dword [esp + 0x28], esi
xor esi, esi
call fcn.100d0c02
cdq
idiv dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, 0x3b
mov dl, byte [edx + ecx]
mov byte [esp + esi + 0x167], dl
jle 0x1001c625
push 0xec
lea eax, [esp + 0x48]
push edi
push eax
mov dword [esp + 0x4c], edi
call fcn.100d4cc0
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x16c]
push 0x100
push edx
mov dword [esp + 0x13c], edi
call fcn.1006c040
add esp, 0xc
push edi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x160]
push ecx
lea edx, [esp + 0x154]
push edx
call fcn.100723d0
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x138]
lea esi, [esp + 0x158]
cmp eax, 4
jb 0x1001c6c4
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x1001c6e8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x1001c6b0
cmp eax, edi
je 0x1001c712
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x1001c6e8
cmp eax, 1
jbe 0x1001c712
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x1001c6e8
cmp eax, 2
jbe 0x1001c712
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x1001c712
inc dword [esp + 0x1c]
inc ebp
cmp ebp, ebx
jne 0x1001c702
mov ecx, dword [0x101dd388]
push 0x1a
push ecx
call dword [0x101dd384]
xor ebp, ebp
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x24]
jb 0x1001c5e3
jmp 0x1001c73b
mov esi, dword [esp + 0x34]
push 0x3c
lea eax, [esp + 0x16c]
push eax
lea ecx, [esi + 0xca]
push ecx
call fcn.100d0e10
add esp, 0xc
mov byte [esi + 0xc9], 1
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
jmp 0x1001c759
xor al, al
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x198
ret 4