Function at 0x421700
Capabilities:
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a5e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc80
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0xc78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0xc94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xca4]
push 0x4656a0
mov ebx, edx
lea edx, [esp + 0x288]
push 0x200
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ecx
call fcn.004414db
xor edi, edi
add esp, 0xc
lea ecx, [esp + 0x44]
mov word [esp + 0x682], di
call fcn.0042bd40
mov dword [esp + 0xc9c], edi
mov ebp, 7
lea eax, [esp + 0x284]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4217a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x288]
push eax
lea esi, [esp + 0x28]
call fcn.00406f80
mov ecx, esi
push edi
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0xca4], 1
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x4217f1
mov edx, dword [esp + 0x24]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x5c], esi
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
jae 0x42180c
lea edx, [esp + 0x48]
mov ebp, dword [0x474bb0]
cmp ebp, edi
je 0x42184f
mov eax, edx
lea esi, [eax + 2]
jmp 0x421820
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421820
sub eax, esi
sar eax, 1
push ebp
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
mov dword [esp + 0xc9c], 0xffffffff
cmp dword [esp + 0x5c], esi
jb 0x42186d
mov edx, dword [esp + 0x48]
push edx
call fcn.004415cb
add esp, 4
cmp dword [ebx + 0x18], esi
jb 0x421877
mov eax, dword [ebx + 4]
jmp 0x42187a
lea eax, [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
push 0x20006
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x4219b9
push 0x4656b0
lea edx, [esp + 0x288]
push 0x200
push edx
call fcn.004414db
add esp, 0xc
lea ecx, [esp + 0x44]
mov word [esp + 0x682], di
call fcn.0042bd40
mov dword [esp + 0xc9c], 2
mov ebx, 7
lea eax, [esp + 0x284]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
lea edx, [eax + 2]
jmp 0x4218f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4218f0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x288]
push eax
lea esi, [esp + 0x28]
call fcn.00406f80
mov ecx, esi
push edi
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0xca4], 3
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x421941
mov edx, dword [esp + 0x24]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x5c], esi
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
jae 0x42195c
lea edx, [esp + 0x48]
mov ebp, dword [0x474bb0]
cmp ebp, edi
je 0x42199f
mov eax, edx
lea esi, [eax + 2]
jmp 0x421970
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421970
sub eax, esi
sar eax, 1
push ebp
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x4219b2
mov edx, dword [esp + 0x48]
push edx
call fcn.004415cb
add esp, 4
xor eax, eax
jmp 0x421a8d
push 0x206
lea eax, [esp + 0x68a]
push edi
push eax
mov dword [esp + 0x4c], 0x104
mov word [esp + 0x690], di
call fcn.00446fa0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x82]
push edi
push ecx
mov word [esp + 0x88], di
call fcn.00446fa0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x421a0b
mov eax, dword [eax + 4]
jmp 0x421a0e
add eax, 4
push 0x462518
push eax
push str.__s_s___background
push 0x208
lea edx, [esp + 0x8c]
push 0x104
push edx
call fcn.004415ac
mov ebx, dword [esp + 0x54]
add esp, 0x18
cmp dword [ebx + 0x18], esi
lea eax, [ebx + 4]
mov dword [esp + 0x18], eax
jb 0x421a45
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x688]
push edx
push edi
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421ab5
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x688]
push edx
call fcn.00442024
add esp, 8
test eax, eax
jne 0x421ab5
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0xc94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc78]
xor ecx, esp
call fcn.004414cc
add esp, 0xc8c
ret
push 0x4656f4
lea ecx, [esp + 0x288]
push 0x200
push ecx
call fcn.004414db
add esp, 0xc
lea ecx, [esp + 0x44]
mov word [esp + 0x682], di
call fcn.0042bd40
mov dword [esp + 0xc9c], 4
mov ebp, 7
lea eax, [esp + 0x284]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421b07
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x288]
push edx
lea esi, [esp + 0x28]
call fcn.00406f80
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0xca4], 5
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x421b58
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x5c], esi
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
jae 0x421b73
lea edx, [esp + 0x48]
mov ebp, dword [0x474bb0]
cmp ebp, edi
je 0x421bb1
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421b82
sub eax, esi
sar eax, 1
push ebp
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
mov dword [esp + 0xc9c], 0xffffffff
cmp dword [esp + 0x5c], esi
jb 0x421bcf
mov edx, dword [esp + 0x48]
push edx
call fcn.004415cb
add esp, 4
cmp dword [ebx + 0x14], edi
jne 0x421d01
push 0x465704
lea eax, [esp + 0x890]
push 0x200
push eax
call fcn.004414db
add esp, 0xc
lea ecx, [esp + 0x60]
mov word [esp + 0xc8a], di
call fcn.0042bd40
mov dword [esp + 0xc9c], 6
mov ebx, 7
lea eax, [esp + 0x88c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421c30
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x890]
push ecx
lea esi, [esp + 0x28]
call fcn.00406f80
mov edx, esi
push edi
push edx
or eax, 0xffffffff
lea esi, [esp + 0x68]
mov byte [esp + 0xca4], 7
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x421c81
mov eax, dword [esp + 0x24]
push eax
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x78], esi
mov edx, dword [esp + 0x64]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
jae 0x421c9c
lea edx, [esp + 0x64]
mov ebx, dword [0x474bb0]
cmp ebx, edi
je 0x421cdb
mov eax, edx
lea esi, [eax + 2]
jmp 0x421cb0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421cb0
sub eax, esi
sar eax, 1
push ebx
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0x78], 8
jb 0x421cef
mov eax, dword [esp + 0x64]
push eax
call fcn.004415cb
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x421a8d
lea eax, [esp + 0x7c]
lea edx, [eax + 2]
jmp 0x421d10
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x421d10
sub eax, edx
sar eax, 1
cmp dword [ebx + 0x18], esi
lea ecx, [eax + eax + 2]
jb 0x421d30
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
jmp 0x421d34
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x80]
push ecx
push 1
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x421a88
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x421a8d