Function at 0x502000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4a48
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x669404]
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 - 0x6c], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov edi, esp
push 0xdead000b
push 0xe3beef
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x502077
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [edi], edx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00406010
mov eax, 8
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x60], eax
cmp eax, ebx
je 0x5020b4
mov dword [eax], 0xabab00e3
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
jmp 0x5020d2
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x5020df
mov dword [eax], 0xcdcd00e3
mov dword [ebp - 0x64], 6
test byte [0x679728], 1
jne 0x502112
or dword [0x679728], 1
mov dword [ebp - 4], 3
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x64]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x50224b
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 6
lea edi, [ebp - 0x38]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x50216f
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x50217d
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 7
test byte [0x679728], 1
jne 0x5021bf
or dword [0x679728], 1
mov byte [ebp - 4], 8
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 7
mov ecx, 0x6796dc
mov dword [ebp - 0x64], ecx
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 9
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x502204
cmp dword [edi + 0x14], 8
jb 0x5021e9
mov eax, dword [edi]
jmp 0x5021eb
mov eax, edi
mov edx, dword [ecx]
push 0xe3
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x40], 8
jb 0x50222f
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x502258
mov dword [eax], 0xcdcd00e4
mov dword [ebp - 0x64], 6
test byte [0x679728], 1
jne 0x50228b
or dword [0x679728], 1
mov dword [ebp - 4], 0xa
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x64]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x5023e9
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xd
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, ebx
jne 0x5022ea
push 0x13
push str.EnterFunction_Name
mov ecx, edi
call fcn.004044f0
jmp 0x5022f8
push str.EnterFunction_Name
push eax
call fcn.004046b0
add esp, 8
mov eax, dword [edi + 0x1c]
cmp eax, ebx
jne 0x50230e
push esi
push ebx
mov edx, dword [ebp - 0x58]
push edx
mov ecx, edi
call fcn.00406070
jmp 0x50231b
mov ecx, dword [ebp - 0x58]
push ecx
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 0xe
test byte [0x679728], 1
jne 0x50235d
or dword [0x679728], 1
mov byte [ebp - 4], 0xf
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, 0x6796dc
mov dword [ebp - 0x64], ecx
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 0x10
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x5023a2
cmp dword [edi + 0x14], 8
jb 0x502387
mov eax, dword [edi]
jmp 0x502389
mov eax, edi
mov edx, dword [ecx]
push 0xe4
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x40], 8
jb 0x5023cd
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
mov dword [ebp - 0x68], ebx
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
call fcn.00504490
add esp, 4
test al, al
je 0x502636
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x10]
cmp edx, ebx
jne 0x50242c
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x14], 8
jb 0x50241b
mov eax, dword [eax]
push 1
push 0x610bf8
push 1
push ebx
push eax
mov edx, dword [ebp - 0x68]
push edx
jmp 0x50244e
mov esi, 8
cmp dword [ecx + 0x14], esi
jb 0x502438
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x14], esi
jb 0x502442
mov eax, dword [eax]
add edx, edx
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x50263d
mov esi, dword [ebp - 0x60]
cmp esi, ebx
je 0x502469
mov dword [esi], 0xcdcd00ff
mov dword [ebp - 0x5c], 2
lea ecx, [ebp - 0x5c]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x502561
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x11
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x13
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.RegSetValueExW_failed._Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x5024df
push 0xffffffffffffffff
push ebx
mov edx, dword [ebp - 0x58]
push edx
mov ecx, eax
call fcn.00406070
jmp 0x5024ec
mov eax, dword [ebp - 0x58]
push eax
push ecx
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x14
push 0xff
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x40], 8
jb 0x502538
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
push ecx
call fcn.00419280
xor ebx, ebx
mov esi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x502636
cmp esi, ebx
je 0x50257d
mov dword [esi], 0xcdcd0102
mov dword [ebp - 0x5c], 2
lea eax, [ebp - 0x5c]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x502636
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x17
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.RegCloseKey_failed._Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x58]
mov esi, eax
call fcn.00418d70
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x18
push 0x102
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov edx, edi
push edx
call fcn.00419280
xor al, al
jmp 0x5027e1
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, dword [ebp - 0x60]
je 0x50271c
cmp eax, ebx
je 0x50265c
mov dword [eax], 0xcdcd0108
mov dword [ebp - 0x5c], 2
lea ecx, [ebp - 0x5c]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x502715
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x1a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x1b
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.RegCloseKey_failed._Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x58]
mov esi, eax
call fcn.00418d70
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1c
push pe_nt_image_headers32
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.00419280
xor al, al
jmp 0x5027e1
cmp eax, ebx
je 0x502726
mov dword [eax], 0xcdcd010d
mov dword [ebp - 0x5c], 6
lea ecx, [ebp - 0x5c]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x5027df
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x1d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x1f
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x58]
mov esi, eax
call fcn.00418d70
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x20
push 0x10d
push str.RegistryHandler::SetStringValue
push str.RegistryHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.00419280
mov al, 1
lea esp, [ebp - 0x80]
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.00546bdc
mov esp, ebp
pop ebp
ret