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

Disassembly:
sub esp, 0x610
push ebx
push ebp
push esi
push edi
call fcn.004140f0
test eax, eax
jne 0x4047fe
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.004046e0
mov ebp, dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0xc
test eax, eax
jne 0x40496b
mov al, byte [0x438098]
test al, al
je 0x404855
mov edi, 0x438098
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 0x40495f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [str.softwareoracle]
mov edx, dword [0x4301f8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x4301fc]
mov dword [esp + 0x20], edx
mov edx, dword [0x430200]
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x404940
lea ecx, [esp + 0x420]
push 0x1ff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x404940
lea edx, [esp + 0x420]
push 0x5c
push edx
call ebp
mov ecx, dword [str.ORACLE.KEY]
add esp, 8
mov dword [eax], ecx
mov edx, dword [0x4301ec]
push 0
push pe_nt_image_headers32
push 3
mov dword [eax + 4], edx
mov ecx, dword [0x4301f0]
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 0x404940
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 0x404939
mov edx, dword [esp + 0x18]
xor ecx, ecx
test edx, edx
jbe 0x404934
mov al, byte [esp + ecx + 0x1c]
test al, al
je 0x404934
cmp al, 0xd
je 0x404934
cmp al, 0xa
je 0x404934
inc ecx
cmp ecx, edx
jb 0x40491f
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, 0x438098
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 0x404989
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x404a03
inc ebx
push 0x5c
push ebx
call ebp
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40499b
mov ebp, ebx
jmp 0x4049e5
mov edi, 0x430074
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 dword [sym.imp.MSVCRT.dll_strncat]
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 0x404a10
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 0x404a66
cmp eax, 0xea
je 0x404a52
mov dword [esi], 0x5208
mov dword [esi + 4], edi
mov dword [esi + 8], 0x270f
xor ebx, ebx
jmp 0x404aa2
mov dword [esi], 0x5209
mov dword [esi + 4], edi
mov dword [esi + 8], 0x270f
xor ebx, ebx
jmp 0x404aa2
mov ecx, dword [esp + 0x10]
mov dword [esi], edi
cmp ecx, edi
je 0x404a80
mov al, byte [esp + ecx + 0x41f]
test al, al
jne 0x404a80
dec ecx
mov dword [esp + 0x10], ecx
cmp ecx, edi
mov ebx, ecx
je 0x404aa2
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