Function at 0x47f3e0
Capabilities:
Delete file
Get file size
Query or enumerate registry value
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f690
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x294], ecx
xor edi, edi
mov dword [ebp - 0x28c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x27c], 0x68ddbb56
mov dword [ebp - 0x278], 0x4fd99d1d
mov dword [ebp - 0x274], 0xdac0c589
mov dword [ebp - 0x270], 0x9253622a
mov dword [ebp - 0x2a4], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp edi, 1
jae 0x47f661
mov byte [ebp - 0x168], 0
push 0x103
push 0
lea ecx, [ebp - 0x167]
push ecx
call fcn.004ff6f0
mov byte [ebp - 0x64], 0
push 0x3f
push 0
lea edx, [ebp - 0x63]
push edx
call fcn.004ff6f0
mov eax, edi
add eax, eax
lea esi, [ebp + eax*8 - 0x27c]
push 0x40
lea ecx, [ebp - 0x64]
push ecx
push esi
call fcn.004be730
lea edx, [ebp - 0x64]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerShellServiceObjects
push 0x55fa6c
lea eax, [ebp - 0x168]
push eax
call fcn.004ff1e4
add esp, 0x34
lea ecx, [ebp - 0x280]
push ecx
push SysReAllocString
push 0
lea edx, [ebp - 0x168]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x47f655
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x64]
push ecx
push str.CLSID_sInProcServer32
lea edx, [ebp - 0x168]
push edx
call fcn.004ff1e4
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
push SysReAllocString
push 0
lea ecx, [ebp - 0x168]
push ecx
push SysReAllocString
call ebx
test eax, eax
jne 0x47f655
mov byte [ebp - 0x26c], al
push 0x103
push eax
lea edx, [ebp - 0x26b]
push edx
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 0x288], 1
mov dword [ebp - 0x290], 0x104
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x288]
push edx
push 0
push 0
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47f644
mov ecx, dword [ebp - 0x280]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x280], 0
mov eax, dword [ebp - 0x284]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47f5b4
sub eax, edx
inc eax
push eax
mov edx, dword [ebp - 0x284]
push edx
push 2
push 0
push 0
lea eax, [ebp - 0x168]
push eax
push SysReAllocString
call fcn.004d66a0
add esp, 0x1c
test eax, eax
jne 0x47f644
mov ecx, dword [ebp - 0x294]
mov edx, dword [ecx + 0x60]
mov edi, 1
mov dword [edx + 0x2484], edi
mov eax, dword [ecx + 0x60]
mov edx, dword [esi]
mov dword [eax + 0x2488], edx
mov edx, dword [esi + 4]
mov dword [eax + 0x248c], edx
mov edx, dword [esi + 8]
mov dword [eax + 0x2490], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 0x2494], edx
push 0x104
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ecx + 0x60]
add ecx, 0x2498
push ecx
call fcn.004bf0a0
add esp, 0xc
mov dword [ebp - 0x28c], edi
jmp 0x47f66e
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x47f655
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov dword [ebp - 0x2a4], edi
jmp 0x47f462
cmp dword [ebp - 0x28c], 0
je 0x47f81c
mov edx, dword [str._User32.dll___]
mov dword [ebp - 0x24], edx
mov eax, dword [0x56e818]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x56e81c]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x56e820]
mov word [ebp - 0x18], dx
mov al, byte [0x56e822]
mov byte [ebp - 0x16], al
push 0
push 0x80
push 3
push 0
push 0
push 0xc0010000
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47f81c
mov dword [ebp - 0x290], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x298], edi
push edi
call fcn.004fc6be
add esp, 4
mov ebx, eax
mov dword [ebp - 0x280], ebx
push 0
lea edx, [ebp - 0x2a8]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47f710
sub eax, ecx
mov dword [ebp - 0x288], eax
sub edi, eax
sub edi, 0xa
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], ebx
test edi, edi
je 0x47f7b1
mov ecx, eax
lea edx, [ebp - 0x24]
mov esi, ebx
jmp 0x47f740
cmp ecx, 4
jb 0x47f756
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x47f77a
sub ecx, 4
add edx, 4
add esi, 4
jmp 0x47f740
test ecx, ecx
je 0x47f790
mov al, byte [edx]
cmp al, byte [esi]
jne 0x47f77a
cmp ecx, 1
jbe 0x47f790
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x47f77a
cmp ecx, 2
jbe 0x47f790
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x47f790
dec edi
mov dword [ebp - 0x29c], edi
inc ebx
mov dword [ebp - 0x2a0], ebx
mov eax, dword [ebp - 0x288]
jmp 0x47f730
mov esi, 1
mov edx, dword [ebp - 0x294]
mov eax, dword [edx + 0x60]
add eax, 0x2498
mov edx, ebx
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x47f7a5
jmp 0x47f7b7
mov esi, dword [ebp - 0x290]
test esi, esi
je 0x47f80d
mov esi, dword [ebp - 0x284]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47f80d
push 0
lea eax, [ebp - 0x298]
push eax
mov ecx, dword [ebp - 0x298]
push ecx
mov edx, dword [ebp - 0x280]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x280]
push eax
call fcn.004fedfc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret