Function at 0x405ec0
Capabilities:
Delete directory
Get file size
Query or enumerate registry key
Query or enumerate registry value
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, 0x1090
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x108c], eax
mov eax, dword [esp + 0x1098]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10a0]
mov ebp, edx
push edi
mov dword [esp + 0x68], eax
xor eax, eax
push 0x7fe
push eax
mov dword [esp + 0x3c], eax
mov word [esp + 0xa0], ax
lea eax, [esp + 0xa2]
push eax
mov dword [esp + 0x9c], ecx
call fcn.0048fb10
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov dword [esp + 0x5c], eax
cmp eax, 0xffffffff
je 0x40651f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x40651f
mov edi, dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0
push 0
push 0
call edi
lea ecx, [ebx + 2]
mov dword [esp + 0x74], eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ecx
push 8
push eax
call ebx
mov dword [esp + 0x40], eax
test eax, eax
je 0x40651f
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], 0
push ecx
push dword [esp + 0x1c]
push eax
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40651f
mov ecx, dword [esp + 0x14]
mov eax, 0
shr ecx, 1
mov dword [esp + 0x14], ecx
je 0x405fe8
mov edx, dword [esp + 0x40]
nop dword [eax]
cmp word [edx + eax*2], 0xd
jne 0x405fdd
xor edi, edi
mov word [edx + eax*2], di
inc eax
cmp eax, ecx
jb 0x405fd0
mov edi, dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x4d2e10
call esi
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
je 0x40651f
xor eax, eax
mov dword [esp + 0x30], 0
push 0x7fe
push eax
mov word [esp + 0x8a0], ax
lea eax, [esp + 0x8a2]
push eax
call fcn.0048fb10
add esp, 0xc
mov dword [esp + 0x44], 0x1312d00
push 0
push 0
push 0
call edi
push 0x1312d00
mov esi, eax
push 8
push esi
mov dword [esp + 0x64], esi
call ebx
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x40651f
push ebp
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
xorps xmm0, xmm0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
movlpd qword [esp + 0x84], xmm0
call ebp
inc eax
xorps xmm0, xmm0
cdq
xor edi, edi
mov dword [esp + 0x6c], eax
mov esi, 1
mov eax, dword [esp + 0x84]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x80]
movlpd qword [esp + 0x78], xmm0
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], edx
nop dword [eax]
add ecx, 1
mov dword [esp + 0x80], ecx
adc eax, 0
mov dword [esp + 0x70], eax
lea eax, [ebx + edx*2]
push eax
lea eax, [esp + 0x89c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x898]
push eax
call ebp
cdq
add eax, 1
adc edx, 0
add dword [esp + 0x54], eax
lea eax, [esp + 0x38]
adc dword [esp + 0x64], edx
push eax
push 0x20019
push 0
lea eax, [esp + 0x8a4]
push eax
push dword [esp + 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4065c0
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
push dword [esp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4065b6
mov eax, dword [esp + 0x24]
inc dword [esp + 0x1c]
inc eax
push 2
push eax
mov dword [esp + 0x2c], eax
call fcn.004909d3
push 2
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x3c], ebx
call fcn.004909d3
add esp, 0x10
mov esi, eax
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x40671b
test esi, esi
je 0x40671b
mov edi, dword [esp + 0x1c]
add edi, 0x4010
push 2
push edi
mov dword [esp + 0x28], edi
call fcn.004909d3
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40670f
xor ebp, ebp
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x4cb9b4], 0
je 0x4065ec
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
push esi
push ebp
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
mov dword [esp + 0x60], esi
test esi, esi
mov esi, dword [esp + 0x18]
jne 0x406333
cmp word [esi], 0
je 0x406333
push esi
lea eax, [esp + 0x89c]
push eax
push 0x4b3480
push edi
push ebx
call fcn.0040a420
add esp, 0x14
cmp eax, 0xffffffff
je 0x406333
mov esi, dword [esp + 0x34]
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x406293
mov eax, dword [esp + 0x40]
lea esi, [eax + edi*2]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea edx, [esi + 2]
nop dword [eax]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x406260
sub esi, edx
sar esi, 1
test eax, eax
je 0x406280
add edi, 2
add edi, esi
cmp dword [esp + 0x14], edi
ja 0x406247
jmp 0x406293
lea eax, [edi + 2]
add eax, esi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], edi
ja 0x40632b
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.ShellNoRoam
push ebx
call esi
test eax, eax
jne 0x40632b
push str.shell_bag
push ebx
call esi
test eax, eax
jne 0x40632b
push ebx
push dword [esp + 0x6c]
lea eax, [esp + 0xa0]
push str._s_s
push 0x400
push eax
call fcn.0040a420
add esp, 0x14
cmp eax, 0xffffffff
je 0x40632b
push 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x44]
add eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [esp + 0xa4]
push eax
push esi
call edi
push 0
lea eax, [esp + 0x98]
push eax
push 4
push 0x4b348c
push esi
call edi
mov edi, dword [esp + 0x20]
inc ebp
mov esi, dword [esp + 0x18]
jmp 0x4061d0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x60]
inc ebp
cmp eax, 0x103
je 0x406347
test eax, eax
je 0x4061d0
push ebx
call fcn.004909de
mov edi, dword [esp + 0x28]
add esp, 4
add edi, 0x4010
mov dword [esp + 0x60], edi
push 2
push edi
call fcn.004909d3
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4065e0
xor ebp, ebp
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push 0
push 0
push 0
push 0
push eax
push dword [esp + 0x40]
mov dword [esp + 0x48], ecx
push ebp
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x406572
push str.WOW6432Node
push dword [esp + 0x30]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x406572
push dword [esp + 0x2c]
lea eax, [esp + 0x89c]
push eax
push 0x4b34c0
push edi
push ebx
call fcn.0040a420
add esp, 0x14
cmp eax, 0xffffffff
je 0x406572
mov esi, dword [esp + 0x34]
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x406435
nop word [eax + eax]
mov eax, dword [esp + 0x40]
lea esi, [eax + edi*2]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea edx, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x406402
sub esi, edx
sar esi, 1
test eax, eax
je 0x406422
add edi, 2
add edi, esi
cmp dword [esp + 0x14], edi
ja 0x4063f0
jmp 0x406435
lea eax, [edi + 2]
add eax, esi
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], edi
ja 0x4064b5
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.ShellNoRoam
push ebx
call esi
test eax, eax
jne 0x4064b5
push str.shell_bag
push ebx
call esi
test eax, eax
jne 0x4064b5
push ebx
push dword [esp + 0x6c]
lea eax, [esp + 0xa0]
push str._s_s_
push 0x400
push eax
call fcn.0040a420
add esp, 0x14
cmp eax, 0xffffffff
je 0x4064b5
push 0
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x44]
add eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [esp + 0xa4]
push eax
push esi
call edi
push 0
lea eax, [esp + 0x7c]
push eax
push 4
push 0x4b348c
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
mov edi, dword [esp + 0x6c]
cdq
add eax, edi
adc edx, dword [esp + 0x48]
add eax, 1
adc edx, 0
shld edx, eax, 1
add eax, eax
test edx, edx
jb 0x40653b
ja 0x4064e1
cmp eax, dword [esp + 0x44]
jb 0x40653b
mov eax, dword [esp + 0x44]
add eax, 0x1388000
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
push 8
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40653f
push 0x10
push str.Error_23
push str.No_free_memory.
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
mov ecx, dword [esp + 0x109c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1090
ret
mov eax, dword [esp + 0x28]
add dword [esp + 0x4c], 1
lea eax, [eax + edi*2]
push ebx
adc dword [esp + 0x54], 0
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
call esi
cdq
add eax, 1
adc edx, 0
add edi, eax
mov dword [esp + 0x6c], edi
adc dword [esp + 0x48], edx
inc ebp
mov edi, dword [esp + 0x60]
jmp 0x406375
inc ebp
cmp esi, 0x103
je 0x406583
test esi, esi
je 0x406375
push ebx
call fcn.004909de
add esp, 4
push dword [esp + 0x2c]
call fcn.004909de
add esp, 4
push dword [esp + 0x18]
call fcn.004909de
mov ebx, dword [esp + 0x2c]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
cmp ecx, esi
jne 0x4065d7
cmp eax, edi
je 0x406727
mov edx, dword [esp + 0x54]
jmp 0x4060d0
push 0x10
push str.Error_112
jmp 0x40650e
push dword [esp + 0x2c]
call fcn.004909de
add esp, 4
push esi
call fcn.004909de
add esp, 4
push ebx
call fcn.004909de
mov eax, dword [esp + 0x40]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_HeapDestroy]
call esi
push dword [esp + 0x5c]
call edi
push dword [esp + 0x74]
call esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x130b
push 0x271c
push dword [0x4e6030]
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
test eax, eax
jne 0x406694
cmp dword [0x4e5c1c], 1
jne 0x406694
push eax
push 0x2980
push dword [0x4e6030]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
mov ecx, 1
call fcn.00402c80
push 5
push 0x272e
push dword [0x4e6030]
call edi
push eax
call esi
mov ecx, 0x4d3e10
call fcn.004028e0
push 0x4d3e10
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, 0x4b3c5c
mov ecx, 0x4b32d0
call fcn.00478640
push eax
push 0x2728
push dword [0x4e6030]
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call esi
push 0x4b34dc
push 0x2729
push dword [0x4e6030]
call edi
push eax
call esi
push 0
push 0
push 0x402
push 0x272b
push dword [0x4e6030]
call edi
push eax
call ebx
push 1
mov dword [0x4cb9b4], 2
call dword [sym.imp.KERNEL32.dll_ExitThread]
push 0x10
push str.Error_12
jmp 0x40650e
push 0x10
push str.Error_5
jmp 0x40650e
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_HeapDestroy]
call esi
push dword [esp + 0x5c]
call edi
push dword [esp + 0x74]
call esi
mov eax, 1
jmp 0x406522