Function at 0x4027c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xaa4
push ebx
push esi
push edi
mov ebx, ecx
push ebp
xor ebp, ebp
cmp dword [ebx + 0x2c], ebp
je 0x402d92
mov dword [esp + 0x2c], ebp
cmp dword [ebx + 0x28], ebp
jle 0x402d92
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + eax]
lea ecx, [esp + 0x234]
push edx
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
jle 0x40283b
mov eax, 0x2c
cmp byte [esp + esi + 0x234], al
je 0x402832
inc esi
cmp edi, esi
jg 0x402822
jmp 0x40283b
mov byte [esp + esi + 0x234], 0
inc esi
lea eax, [esp + 0x234]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + esi + 0x234]
cmp edi, esi
jle 0x402877
mov eax, 0x2c
cmp byte [esp + esi + 0x234], al
je 0x40286e
inc esi
cmp edi, esi
jg 0x40285e
jmp 0x402877
mov byte [esp + esi + 0x234], 0
inc esi
lea eax, [esp + 0x434]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + esi + 0x234]
cmp edi, esi
jle 0x4028e4
xor ecx, ecx
lea eax, [esp + esi + 0x234]
cmp byte [eax], 0x22
jne 0x4028ca
lea edx, [esp + esi + 0x235]
inc esi
mov byte [eax], cl
cmp edi, esi
jle 0x4028ca
mov eax, 0x22
cmp byte [esp + esi + 0x234], al
je 0x4028c2
inc esi
cmp edi, esi
jg 0x4028b2
jmp 0x4028ca
mov byte [esp + esi + 0x234], cl
inc esi
cmp byte [esp + esi + 0x234], 0x2c
je 0x4028db
inc esi
cmp edi, esi
jg 0x402893
jmp 0x4028e4
mov byte [esp + esi + 0x234], 0
inc esi
lea eax, [esp + 0x834]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + esi + 0x234]
cmp edi, esi
jle 0x40291c
mov eax, 0x3d
cmp byte [esp + esi + 0x234], al
je 0x402913
inc esi
cmp edi, esi
jg 0x402903
jmp 0x40291c
mov byte [esp + esi + 0x234], 0
inc esi
lea eax, [esp + 0x934]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + esi + 0x234]
lea ecx, [esp + 0x134]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
test eax, eax
jle 0x40296a
mov ecx, 0x5c
cmp byte [esp + edx + 0x34], cl
je 0x402964
inc edx
cmp eax, edx
jg 0x402957
jmp 0x40296a
mov byte [esp + edx + 0x34], 0
inc edx
lea eax, [esp + edx + 0x34]
lea ecx, [esp + 0x634]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x834]
xor esi, esi
push ecx
xor edi, edi
mov ecx, ebx
call fcn.00401640
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4029e1
mov ecx, 0x5b
cmp byte [esp + edi + 0x134], cl
je 0x4029b7
inc edi
cmp eax, edi
jg 0x4029a7
jmp 0x4029e1
lea esi, [esp + edi + 0x135]
inc edi
cmp eax, edi
jle 0x4029e1
mov ecx, 0x5d
cmp byte [esp + edi + 0x134], cl
je 0x4029d8
inc edi
cmp eax, edi
jg 0x4029c8
jmp 0x4029e1
mov byte [esp + edi + 0x134], 0
inc edi
test esi, esi
je 0x402a33
push str.DWORD
push esi
call ebp
test eax, eax
jne 0x4029fb
mov dword [esp + 0x14], 4
jmp 0x402a3b
push 0x40d21c
push esi
call ebp
test eax, eax
je 0x402a33
push str.BINARY
push esi
call ebp
test eax, eax
jne 0x402a1d
mov dword [esp + 0x14], 3
jmp 0x402a3b
push str.BINARY
push esi
call ebp
test eax, eax
jne 0x402a3b
mov dword [esp + 0x14], 3
jmp 0x402a3b
mov dword [esp + 0x14], 1
lea eax, [esp + edi + 0x134]
lea ecx, [esp + 0x134]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esp + 0x14], 1
jne 0x402a80
lea eax, [esp + 0x134]
mov ecx, ebx
push eax
call fcn.00401640
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + 0x134]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], 4
jne 0x402aa7
lea eax, [esp + 0x134]
push eax
call fcn.00403950
lea esi, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 4
add esp, 4
lea eax, [esp + 0x34]
push str.HKEY_CLASSES_ROOT
push eax
call ebp
test eax, eax
jne 0x402ac4
mov dword [esp + 0x10], Ordinal_2
jmp 0x402b61
lea eax, [esp + 0x34]
push str.HKEY_CURRENT_CONFIG
push eax
call ebp
test eax, eax
jne 0x402ae1
mov dword [esp + 0x10], 0x80000005
jmp 0x402b61
lea eax, [esp + 0x34]
push str.HKEY_CURRENT_USER
push eax
call ebp
test eax, eax
jne 0x402afb
mov dword [esp + 0x10], Ordinal_2
jmp 0x402b61
lea eax, [esp + 0x34]
push str.HKEY_LOCAL_MACHINE
push eax
call ebp
test eax, eax
jne 0x402b15
mov dword [esp + 0x10], reloc.WINMM.dll_Ordinal_2
jmp 0x402b61
lea eax, [esp + 0x34]
push str.HKEY_USERS
push eax
call ebp
test eax, eax
jne 0x402b2f
mov dword [esp + 0x10], 0x80000003
jmp 0x402b61
lea eax, [esp + 0x34]
push str.HKEY_PERFORMANCE_DATA
push eax
call ebp
test eax, eax
jne 0x402b49
mov dword [esp + 0x10], 0x80000004
jmp 0x402b61
lea eax, [esp + 0x34]
push str.HKEY_DYN_DATA
push eax
call ebp
test eax, eax
jne 0x402b61
mov dword [esp + 0x10], 0x80000006
lea eax, [esp + 0x18]
lea ecx, [esp + 0x634]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x402d7c
cmp byte [esp + 0x834], 0
je 0x402c7f
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x534]
lea edx, [esp + 0x434]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x24], 0x100
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x402c40
lea eax, [esp + 0x734]
push str.Save
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x434]
lea ecx, [esp + 0x734]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xa34]
lea eax, [esp + 0x734]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x24], pe_nt_image_headers32
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402c40
lea eax, [esp + 0x534]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x734]
push eax
lea eax, [esp + 0x538]
mov edx, dword [esp + 0x1c]
push eax
push 1
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
lea eax, [esp + 0x834]
push 0x100
lea ecx, [esp + 0x438]
push eax
mov edx, dword [esp + 0x20]
push 1
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebx + 0x40]
lea edx, [esp + 0x434]
lea eax, [esp + 0x634]
push edx
lea edi, [esp + 0x38]
push eax
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [esp + 0x934], 0
je 0x402d71
lea eax, [esp + 0x20]
lea ecx, [esp + 0x434]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, eax
test edi, edi
je 0x402cea
lea eax, [esp + 0x20]
lea ecx, [esp + 0x434]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, eax
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x434]
lea edx, [esp + 0x634]
push eax
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ecx]
call dword [eax + 0x14]
test edi, edi
jne 0x402d71
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x934]
push eax
mov eax, dword [esp + 0x24]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x634]
lea edx, [esp + 0x534]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x534]
push 0x40d184
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x434]
lea edx, [esp + 0x534]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebx + 0x40]
lea edx, [esp + 0x934]
lea eax, [esp + 0x534]
push edx
lea esi, [esp + 0x38]
push eax
push esi
mov edi, dword [ecx]
call dword [edi + 0x18]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x28], 4
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
cmp dword [ebx + 0x28], eax
jg 0x4027ee
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xaa4
ret