Function at 0x10ca542
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x54]
mov ebx, dword [esi + 0x390]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xf8]
push eax
push 1
push 0x5b
push ebx
mov edi, ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x10ca5a6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
test al, 0x20
jne 0x10ca59d
test al, 0x10
je 0x10ca59d
mov ax, 0x1e
jmp 0x10cab3a
mov di, 0xfde7
jmp 0x10ca836
cmp dword [ebx + 0x14], 0
je 0x10ca5bd
cmp byte [ebx + 0x5a], 2
ja 0x10ca5bd
mov word [esi + 0xd2], 2
jmp 0x10ca5c6
mov word [esi + 0xd2], 1
movzx eax, word [ebx]
push dword [ebp - 0x18]
sub eax, 0x5b
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
add edi, 0x5b
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10ca59d
add edi, dword [ebp - 0x14]
cmp byte [ebx + 0x5a], 1
lea eax, [edi + 0x24]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0x39
je 0x10ca609
mov dword [ebp - 0x14], ReadEncryptedFileRaw
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10ca59d
mov eax, dword [ebp - 0x1c]
add edi, dword [ebp - 0x14]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10ca59d
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0xe4]
push eax
push 1
push dword [edi + 0x60]
call fcn.0108d608
mov eax, dword [edi + 0x74]
mov dword [ebp - 0xe4], eax
mov ax, word [ebx + 2]
mov word [ebp - 0xbe], ax
xor edi, edi
cmp byte [ebx + 0x5a], 1
jne 0x10ca6e8
mov dword [ebp - 0xd0], edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
shr dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x18]
and eax, 2
mov dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 4
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 8
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 0x10
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 0x20
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 1
and eax, 1
or dword [ebp - 0xd0], eax
jmp 0x10ca6f1
mov eax, dword [ebx + 8]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcd], 0
mov al, byte [ebx + 0x59]
neg al
sbb eax, eax
and eax, reloc.GDI32.dll_CreateBitmap
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 4]
and eax, 4
shl eax, 0x17
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 4]
and eax, 0x20000
shl eax, 9
or dword [ebp - 0xd0], eax
xor eax, eax
mov al, byte [ebx + 4]
xor ecx, ecx
inc ecx
and eax, ecx
mov word [ebp - 0xd4], ax
xor eax, eax
mov al, byte [ebx + 4]
and eax, 4
mov word [ebp - 0xb6], ax
mov al, byte [ebx + 0x56]
mov byte [ebp - 0xe0], al
mov al, byte [ebx + 0x57]
mov byte [ebp - 0xdf], al
mov dword [ebp - 0xbc], edi
mov word [ebp - 0xb8], di
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0xd8], eax
movzx ax, byte [ebx + 0x58]
mov word [ebp - 0xc0], ax
mov word [ebp - 0x2a], di
mov ax, word [ebx + 0x1c]
mov word [ebp - 0x44], ax
mov eax, dword [ebx + 0x14]
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x10ca7c2
cmp byte [ebx + 0x5a], 2
ja 0x10ca7c2
cmp word [esi + 0xd0], 2
jne 0x10ca7c2
mov word [ebp - 0x3a], cx
mov word [ebp - 0x3c], 2
jmp 0x10ca7ca
mov word [ebp - 0x3a], di
mov word [ebp - 0x3c], cx
mov al, byte [ebx + 0x5a]
mov byte [ebp - 0x38], al
movzx ax, byte [esi + 0x9d]
mov word [ebp - 0x92], ax
movzx ax, byte [ebx + 0x59]
mov word [ebp - 0x90], ax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0xb0], eax
mov ax, word [ebx + 2]
mov word [ebp - 0xac], ax
mov ax, word [ebx + 0x1e]
mov word [ebp - 0xa2], ax
mov ax, word [ebx + 0x3e]
mov word [ebp - 0x6a], ax
cmp dword [esi + 0x388], edi
jne 0x10ca851
push ecx
push 0x800
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0x388], eax
jne 0x10ca848
mov di, 0xfdfc
push 1
push 1
push esi
call fcn.010af70e
mov ax, di
jmp 0x10cab3a
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 0x800
mov eax, dword [esi + 0x388]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0xb0]
mov dword [ebp - 0x5c], ecx
mov cx, word [esi + 0xb4]
mov word [ebp - 0x58], cx
movzx ecx, word [ebx + 0x46]
add ecx, ebx
mov dword [ebp - 0x64], ecx
mov cx, word [ebx + 0x44]
mov word [ebp - 0x60], cx
mov dword [ebp - 0x80], edi
mov word [ebp - 0x7c], di
mov cx, word [ebx + 0x28]
mov word [ebp - 0x40], cx
mov cx, word [ebx + 0x2c]
mov word [ebp - 0x42], cx
mov cx, word [ebx + 0x30]
mov word [ebp - 0x3e], cx
mov dword [ebp - 0xa8], eax
mov cx, word [esi + 0xa4]
cmp cx, di
je 0x10ca8d8
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
xor eax, eax
mov al, byte [esi + 0x70]
push eax
push ecx
push dword [esi + 0xa0]
lea eax, [ebp - 0x10]
push eax
call fcn.0109bb4e
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x10]
jmp 0x10ca8df
mov word [ebp - 0xa4], di
cmp byte [ebx + 0x5a], 1
jne 0x10ca95d
movzx eax, word [ebx + 0x42]
add eax, ebx
mov dword [ebp - 0xa0], eax
mov ax, word [ebx + 0x40]
mov word [ebp - 0x9c], ax
movzx eax, word [ebx + 0x4a]
add eax, ebx
mov dword [ebp - 0x98], eax
mov ax, word [ebx + 0x48]
mov word [ebp - 0x94], ax
movzx eax, word [ebx + 0x4e]
add eax, ebx
mov dword [ebp - 0x70], eax
mov ax, word [ebx + 0x4c]
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
mov word [ebp - 0x2c], di
movzx ecx, word [eax + 0xa]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x78], ecx
mov cx, word [eax + 8]
mov word [ebp - 0x74], cx
movzx ecx, word [eax + 0xe]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x88], ecx
mov ax, word [eax + 0xc]
mov word [ebp - 0x84], ax
jmp 0x10caafc
xor ecx, ecx
mov dword [ebp - 0xa0], eax
mov cx, word [ebx + 0x40]
cmp cx, di
je 0x10ca992
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
push eax
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0109bb4e
mov word [ebp - 0x9c], ax
mov eax, dword [ebp - 0x10]
jmp 0x10ca999
mov word [ebp - 0x9c], di
xor ecx, ecx
mov dword [ebp - 0x98], eax
mov cx, word [ebx + 0x48]
cmp cx, di
je 0x10ca9ce
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
push eax
movzx eax, word [ebx + 0x4a]
push ecx
add eax, ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0109bb4e
mov word [ebp - 0x94], ax
mov eax, dword [ebp - 0x10]
jmp 0x10ca9d5
mov word [ebp - 0x94], di
xor ecx, ecx
mov dword [ebp - 0x70], eax
mov cx, word [ebx + 0x4c]
cmp cx, di
je 0x10caa04
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
push eax
movzx eax, word [ebx + 0x4e]
push ecx
add eax, ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0109bb4e
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x10]
jmp 0x10caa08
mov word [ebp - 0x6c], di
mov esi, dword [ebp - 0x20]
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x30], ecx
mov dx, word [esi + 4]
cmp dx, di
je 0x10caa42
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov al, byte [edi + 0x22]
push eax
push eax
movzx eax, word [esi + 6]
push edx
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0109bb4e
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x10]
jmp 0x10caa49
mov word [ebp - 0x2c], di
mov edi, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x78], eax
mov dx, word [esi + 8]
test dx, dx
je 0x10caa7b
xor eax, eax
mov al, byte [edi + 0x22]
push eax
push eax
movzx eax, word [esi + 0xa]
push edx
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0109bb4e
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x10]
jmp 0x10caa80
and word [ebp - 0x74], 0
xor edx, edx
mov dword [ebp - 0x88], eax
mov dx, word [esi + 0xc]
test dx, dx
je 0x10caab5
xor eax, eax
mov al, byte [edi + 0x22]
push eax
push eax
movzx eax, word [esi + 0xe]
push edx
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0109bb4e
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x84], ax
jmp 0x10caabd
and word [ebp - 0x84], 0
mov ax, word [ebp - 0x2c]
test ax, ax
je 0x10caafc
add word [ebp - 0x74], ax
cmp word [ebp - 0x74], ax
mov dword [ebp - 0x78], ecx
je 0x10caaf7
mov dword [ebp - 0x10], ecx
cmp byte [edi + 0x22], 1
movzx eax, ax
jne 0x10caaeb
lea ecx, [eax + ecx - 1]
mov dword [ebp - 0x10], ecx
mov byte [ecx], 0x20
jmp 0x10caaf7
lea ecx, [eax + ecx - 2]
mov dword [ebp - 0x10], ecx
mov word [ecx], CloseServiceHandle
and word [ebp - 0x2c], 0
push 0
lea esi, [ebx + 0x50]
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0xf4]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0109c80d
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 0x60]
call fcn.0108cf00
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4