Function at 0x42f570
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456890
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x48f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
xor esi, esi
cmp ecx, 2
jbe 0x42f5ad
mov esi, 0x57
jmp 0x42f615
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 0x4854d0
push eax
call fcn.00416a80
add esp, 0xc
test al, al
jne 0x42f632
mov esi, 0x7a
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42f615
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f60b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f86f
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret
mov edx, 0xf003f
lea ecx, [ebp - 0x70]
call fcn.0042d2f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0xf003f
cmovae ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.0042ff70
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0042d250
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x42f68a
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.0042d250
jmp 0x42f5db
cmp edi, 2
jne 0x42f7f8
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x2c], 0
test esi, esi
je 0x42f6f1
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
push 0x485628
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42f6f6
cmp eax, edi
jne 0x42f6f6
test esi, esi
je 0x42f6f1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x485628
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x42f6f6
mov eax, 0x57
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xd8]
call fcn.00430670
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0xd
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], vtable.kn::auto_handle_struct_HKEY_____struct_kn::system::registry_key_delete_.0
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x70], vtable.js::basic_crypto_registry_object_808481642_.0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], vtable.kn::auto_ptr_class_kn::crypto_aes_base_unsigned_char__class_std::allocator_unsigned_char____struct_std::default_delete_class_kn::crypto_aes_base_unsigned_char__class_std::allocator_unsigned_char____.0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], vtable.kn::basic_buffer_unsigned_char__class_std::allocator_unsigned_char__.0
call fcn.00430010
lea ecx, [ebp - 0xd8]
call fcn.0042d250
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x42f77b
lea ecx, [ebp - 0x70]
call fcn.0042d250
lea ecx, [ebp - 0xa4]
call fcn.0042d250
jmp 0x42f5db
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x42f787
lea esi, [eax + 0x57]
jmp 0x42f763
push 0
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], vtable.kn::auto_handle_struct_HKEY_____struct_kn::system::registry_key_delete_.0
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.0041f580
test esi, esi
jne 0x42f763
lea ecx, [ebp - 0x70]
call fcn.0042d250
lea ecx, [ebp - 0xa4]
call fcn.0042d250
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42f615
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f60b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f86f
jmp 0x42f60b
cmp edi, 1
jne 0x42f7b4
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x2c], 0
test esi, esi
je 0x42f6f1
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
push 0x485630
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42f6f6
cmp eax, 2
jne 0x42f6f6
test esi, esi
je 0x42f6f1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x485630
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x42f6f6
call fcn.0044316c
int3