Function at 0x4012f0
Capabilities:
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x610
push ebx
push ebp
push esi
push edi
call fcn.00401710
test eax, eax
jne 0x40130e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x610
ret
mov esi, dword [esp + 0x624]
lea eax, [esp + 0x1c]
push eax
push str.ORA_KEY
push esi
call fcn.004011f0
add esp, 0xc
test eax, eax
jne 0x401478
mov al, byte [0x40a980]
test al, al
je 0x40135f
mov edi, 0x40a980
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40146c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [str.softwareoracle]
mov edx, dword [0x40804c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x408050]
mov dword [esp + 0x20], edx
mov edx, dword [0x408054]
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x40144d
lea ecx, [esp + 0x420]
push 0x1ff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40144d
lea edx, [esp + 0x420]
push 0x5c
push edx
call fcn.00401b90
mov ecx, dword [str.ORACLE.KEY]
add esp, 8
mov dword [eax], ecx
mov edx, dword [0x408040]
push 0
push pe_nt_image_headers32
push 3
mov dword [eax + 4], edx
mov ecx, dword [0x408044]
push 0
push 1
lea edx, [esp + 0x434]
push 0x80000000
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40144d
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401446
mov edx, dword [esp + 0x18]
xor ecx, ecx
test edx, edx
jbe 0x401441
mov al, byte [esp + ecx + 0x1c]
test al, al
je 0x401441
cmp al, 0xd
je 0x401441
cmp al, 0xa
je 0x401441
inc ecx
cmp ecx, edx
jb 0x40142c
mov byte [esp + ecx + 0x1c], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40a980
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x624]
mov ebx, dword [esp + 0x628]
cmp byte [ebx], 0x5c
jne 0x401496
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x401512
inc ebx
push 0x5c
push ebx
call fcn.00401b90
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4014ab
mov ebp, ebx
jmp 0x4014f4
mov edi, 0x408038
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, ebp
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.00401a60
mov esi, dword [esp + 0x630]
add esp, 0xc
inc ebp
lea edx, [esp + 0x14]
xor edi, edi
push edx
push 1
lea eax, [esp + 0x24]
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40151f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x610
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x420]
push ecx
push edx
push edi
push edi
push ebp
push eax
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x401575
cmp eax, 0xea
je 0x401561
mov dword [esi], 0x5208
mov dword [esi + 4], edi
mov dword [esi + 8], 0x270f
xor ebx, ebx
jmp 0x4015b1
mov dword [esi], 0x5209
mov dword [esi + 4], edi
mov dword [esi + 8], 0x270f
xor ebx, ebx
jmp 0x4015b1
mov ecx, dword [esp + 0x10]
mov dword [esi], edi
cmp ecx, edi
je 0x40158f
mov al, byte [esp + ecx + 0x41f]
test al, al
jne 0x40158f
dec ecx
mov dword [esp + 0x10], ecx
cmp ecx, edi
mov ebx, ecx
je 0x4015b1
mov edi, dword [esp + 0x62c]
mov edx, ecx
lea esi, [esp + 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x610
ret