Function at 0x10c96ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x54]
xor eax, eax
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], ax
push esi
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
je 0x10c97b5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x206c]
mov esi, dword [eax + 0x38]
add esi, dword [eax + 0x50]
mov edi, dword [ebx + 0x2068]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 0x206c]
push eax
call fcn.010ac48d
mov ax, word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW]
test ax, ax
mov edi, dword [ebx + 0x2044]
mov ecx, dword [ebx + 0x2048]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ecx
je 0x10c9771
test ecx, ecx
je 0x10c9771
add edi, 4
mov dword [ebp - 4], edi
cmp ecx, 2
mov esi, dword [ebp + 0xc]
jne 0x10c98a0
mov ecx, edi
add edi, 0xf
test ax, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edi
je 0x10c97a7
movzx eax, word [reloc.ADVAPI32.dll_RegDeleteValueW]
movzx ecx, word [reloc.ADVAPI32.dll_RegDeleteValueW]
lea eax, [eax + ecx - 0xd]
mov dword [ebp - 0x14], eax
jmp 0x10c985c
movzx eax, word [ecx]
sub eax, 0xd
mov dword [ebp - 0x14], eax
jmp 0x10c98a0
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x38]
add edi, dword [esi + 0x50]
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov dword [ebp - 4], edi
je 0x10c9899
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll_fread]
push 1
mov dword [ebp - 8], eax
lea eax, [ebx + 0x23e8]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x10c97fa
mov dword [ebp + 8], 0xfffffdf3
jmp 0x10c9a1a
push dword [ebx]
push 1
push 2
push 0x10eec50
call esi
add esp, 0x10
cmp eax, 1
jne 0x10c97ee
push dword [ebx]
push eax
push 2
push 0x10eec54
call esi
add esp, 0x10
cmp eax, 1
jne 0x10c97ee
push dword [ebx]
push eax
push eax
push 0x10eec4c
call esi
add esp, 0x10
cmp eax, 1
jne 0x10c97ee
push dword [ebx]
movzx eax, byte [ebx + 0x23e8]
push eax
lea eax, [ebx + 0x2084]
push 8
push eax
call esi
movzx ecx, byte [ebx + 0x23e8]
add esp, 0x10
cmp eax, ecx
jne 0x10c97ee
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp word [ebp - 0x10], cx
jne 0x10c9a0b
mov eax, dword [ebp - 8]
sub eax, ecx
je 0x10c997f
dec eax
je 0x10c98f0
dec eax
jne 0x10c9a01
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
mov dword [ebp - 0xc], eax
jne 0x10c98ac
cmp dword [esi + 0x48], eax
jae 0x10c98c9
jmp 0x10c9993
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 3
je 0x10c9a11
jmp 0x10c985c
cmp dword [ebx + 0x2048], 2
je 0x10c98c9
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push esi
push eax
push ebx
call fcn.010c9541
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
xor ecx, ecx
cmp word [ebp + 8], cx
jne 0x10c99e9
add edi, dword [ebp - 0x14]
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10c9a25
sub edi, dword [ebx + 0x2044]
jmp 0x10c9a2b
add dword [ebp - 0xc], 0xf
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
jne 0x10c9915
mov eax, dword [ebp - 0xc]
cmp dword [esi + 0x48], eax
jae 0x10c9930
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
mov word [eax], CompareStringW
jmp 0x10c999c
cmp dword [ebx + 0x2048], ecx
jne 0x10c9930
push LoadLibraryW
push esi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.010c9541
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
cmp word [ebp + 8], 0
jne 0x10c99e9
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov dword [ebp - 0x18], edi
je 0x10c9964
mov al, byte [0x10eec4c]
mov byte [edi + 0xe], al
movzx eax, word [reloc.ADVAPI32.dll_RegDeleteValueW]
movzx ecx, word [reloc.ADVAPI32.dll_RegDeleteValueW]
lea eax, [eax + ecx - 0xd]
jmp 0x10c996a
movzx eax, word [edi]
sub eax, 0xd
add edi, 0xf
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 2
jmp 0x10c985c
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
push 4
pop eax
mov dword [ebp - 0xc], eax
jne 0x10c99b2
cmp dword [esi + 0x48], eax
jae 0x10c99b2
mov ecx, dword [ebp + 0x10]
mov word [ecx], CompareStringW
push eax
push esi
push ebx
mov dword [ebp - 0x10], 1
call fcn.010c94b4
mov dword [ebp + 8], eax
jmp 0x10c985c
cmp dword [edi], 0x33cc33cc
je 0x10c99f5
push 6
add edi, 6
push esi
mov dword [ebp - 4], edi
call fcn.010ac48d
cmp dword [edi], 0x33cc33cc
jne 0x10c99e2
add edi, 4
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
jmp 0x10c985c
mov dword [ebp + 8], 0xfffffdf6
mov dword [ebp - 0x10], 1
jmp 0x10c985c
add edi, eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
cmp dword [ebp - 8], 3
jne 0x10c985c
cmp word [ebp + 8], cx
jne 0x10c9a1a
mov eax, dword [ebp - 8]
mov dword [ebx + 0x2048], eax
mov ax, word [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
sub edi, dword [esi + 0x38]
sub edi, dword [esi + 0x50]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x23dc], edi
test byte [eax + 0xe], 1
mov dword [ebp - 8], 3
je 0x10c9a54
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov word [edx], CompareStringW
jmp 0x10c9a59
mov word [edx], 9
test byte [eax + 0xe], 8
je 0x10c9a68
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
test byte [eax + 0xe], 0x20
je 0x10c9a11
mov eax, dword [ebx + 0x203c]
add eax, dword [ebx + 0x102c]
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
cmp eax, 0xfffffffe
jne 0x10c9a11
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], cx
jmp 0x10c9a11