Function at 0x1005956
Capabilities:
Delete registry value
Move file
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x22c], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x228], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0xf003f
push esi
push 0x1002228
push 0x80000002
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x1005a0b
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1005e15
test byte [ecx + 0x1c], 4
je 0x1005e15
push eax
push 0x1002040
push 0x8a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x1005e15
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
je 0x1005a73
jg 0x1005a36
mov dword [ebp - 0x214], eax
jmp 0x1005a4a
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x214], ecx
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1005e15
test byte [ecx + 0x1c], 1
je 0x1005e15
push eax
push 0x1002040
push 0x8b
jmp 0x10059fb
mov eax, dword [ebp - 0x210]
cmp eax, esi
jne 0x1005ab1
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1005e15
test byte [eax + 0x1c], 4
je 0x1005e15
push 0x1002040
push 0x8c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x1005e15
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
mov edi, 0x1002040
cmp ecx, esi
jne 0x1005b1d
mov dword [ebp - 0x214], 0x8007000e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1005d97
test byte [eax + 0x1c], 1
je 0x1005d97
mov ecx, dword [ebp - 0x210]
shl ecx, 2
push ecx
push edi
push 0x8d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1005d97
xor eax, eax
cmp dword [ebp - 0x210], esi
jbe 0x1005b33
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp - 0x210]
jb 0x1005b27
mov dword [ebp - 0x220], esi
cmp dword [ebp - 0x210], esi
jbe 0x1005d97
mov ebx, 0x104
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
mov dword [ebp - 0x228], ebx
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
mov edx, dword [ebp - 0x21c]
pop ecx
mov ecx, dword [ebp - 0x220]
lea esi, [edx + ecx*4]
mov dword [esi], eax
test eax, eax
je 0x1005d1c
xor edx, edx
mov word [eax], dx
xor eax, eax
push eax
push eax
lea edx, [ebp - 0x224]
push edx
push eax
lea eax, [ebp - 0x228]
push eax
push dword [esi]
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1005d51
cmp dword [ebp - 0x224], 4
je 0x1005bf0
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1005d02
test byte [eax + 0x1c], 2
je 0x1005d02
push dword [esi]
push dword [ebp - 0x224]
push edi
push 0x90
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100503a
jmp 0x1005d02
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [esi]
cmp eax, ecx
je 0x1005cde
test eax, eax
je 0x1005cde
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x1005c5e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1005d02
test byte [eax + 0x1c], 2
je 0x1005d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push edi
push 0x92
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1005d02
push 2
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1005d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1005cb4
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1005ca7
test byte [eax + 0x1c], 4
je 0x1005ca7
push dword [esi]
push edi
push 0x93
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
push dword [esi]
call fcn.01011bdc
and dword [esi], 0
pop ecx
jmp 0x1005d02
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1005d02
test byte [ecx + 0x1c], 2
je 0x1005d02
push eax
push dword [esi]
push edi
push 0x94
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004f4d
jmp 0x1005d02
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1005d02
test byte [eax + 0x1c], 1
je 0x1005d02
push ecx
push edi
push 0x91
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
inc dword [ebp - 0x220]
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x210]
jb 0x1005b4a
jmp 0x1005d95
mov dword [ebp - 0x214], 0x8007000e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1005d95
test byte [eax + 0x1c], 1
je 0x1005d95
push ecx
push 0x208
push edi
push 0x8e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bd5c
jmp 0x1005d95
jg 0x1005d5b
mov dword [ebp - 0x214], eax
jmp 0x1005d6f
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x214], ecx
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1005d95
test byte [ecx + 0x1c], 1
je 0x1005d95
push eax
push edi
push 0x8f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
xor esi, esi
cmp dword [ebp - 0x21c], esi
je 0x1005e13
xor ebx, ebx
cmp dword [ebp - 0x210], ebx
jbe 0x1005e05
mov eax, dword [ebp - 0x21c]
lea esi, [eax + ebx*4]
mov eax, dword [esi]
test eax, eax
je 0x1005dfc
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1005df1
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1005df1
test byte [ecx + 0x1c], 2
je 0x1005df1
push eax
push dword [esi]
push edi
push 0x95
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004f4d
push dword [esi]
call fcn.01011bdc
and dword [esi], 0
pop ecx
inc ebx
cmp ebx, dword [ebp - 0x210]
jb 0x1005da9
push dword [ebp - 0x21c]
call fcn.01011bdc
pop ecx
xor esi, esi
pop edi
pop ebx
cmp dword [ebp - 0x218], esi
pop esi
je 0x1005e2a
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
call fcn.01011f27
leave
ret 4