Function at 0x423fa0
Capabilities:
Delete registry key
Encode data using xor
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x6bc
mov eax, dword [0x498f90]
xor eax, esp
mov dword [esp + 0x6b8], eax
mov edx, dword [esp + 0x6c4]
push ebx
push ebp
push esi
push edi
lea ebx, [esp + 0x59c]
call fcn.00423500
mov edi, eax
lea eax, [esp + 0xa8]
call fcn.00422f40
push 0x4690f8
mov eax, 0x30
lea esi, [esp + 0xac]
call fcn.004226f0
mov eax, ebx
push eax
mov eax, edi
call fcn.004226f0
xor ebx, ebx
push ebx
call fcn.0043f4c4
xor eax, 0x35628182
push eax
call fcn.00441e73
call fcn.00441e80
mov byte [esp + 0x1ac], al
call fcn.00441e80
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x1ad], al
push ecx
lea eax, [ebx + 2]
call fcn.004226f0
add esp, 0x14
mov eax, esi
call fcn.004235a0
mov eax, dword [esp + 0x6d0]
mov dl, byte [eax]
mov ecx, dword [eax + 4]
mov byte [esp + 0x19f], dl
mov edx, ecx
shr edx, 0x18
mov byte [esp + 0x1a0], dl
mov edx, ecx
shr ecx, 8
mov byte [esp + 0x1a2], cl
movzx ecx, byte [eax + 4]
shr edx, 0x10
mov byte [esp + 0x1a1], dl
mov byte [esp + 0x1a3], cl
mov ecx, dword [eax + 8]
mov edx, ecx
shr edx, 0x18
mov byte [esp + 0x1a4], dl
mov edx, ecx
shr ecx, 8
mov byte [esp + 0x1a6], cl
movzx ecx, byte [eax + 8]
shr edx, 0x10
mov byte [esp + 0x1a5], dl
mov edx, dword [eax + 0xc]
mov byte [esp + 0x1a7], cl
movzx ecx, byte [eax + 0xc]
shr edx, 8
mov byte [esp + 0x1a9], cl
mov ecx, dword [eax + 0x10]
mov byte [esp + 0x1a8], dl
mov edx, ecx
shr edx, 0x18
mov byte [esp + 0x1aa], dl
mov edx, ecx
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x1ac], cl
movzx ecx, byte [eax + 0x10]
mov byte [esp + 0x1ab], dl
lea edx, [eax + 0x14]
mov byte [esp + 0x1ad], cl
mov cl, byte [edx]
mov byte [esp + 0x19e], 2
lea edi, [esp + 0x1ae]
cmp cl, bl
je 0x42411f
mov esi, edi
sub edx, esi
mov byte [edi], cl
mov cl, byte [edx + edi + 1]
add edi, 1
cmp cl, bl
jne 0x424112
mov cl, byte [eax + 0x32]
lea edx, [eax + 0x32]
mov byte [edi], bl
add edi, 1
cmp cl, bl
je 0x42413e
mov edi, edi
add edx, 1
mov byte [edi], cl
mov cl, byte [edx]
add edi, 1
cmp cl, bl
jne 0x424130
mov cl, byte [eax + 0x50]
lea edx, [eax + 0x50]
mov byte [edi], bl
add edi, 1
cmp cl, bl
je 0x42415e
lea ecx, [ecx]
add edx, 1
mov byte [edi], cl
mov cl, byte [edx]
add edi, 1
cmp cl, bl
jne 0x424150
lea ecx, [eax + 0x6e]
mov al, byte [ecx]
mov byte [edi], bl
add edi, 1
cmp al, bl
je 0x42417e
lea esp, [esp]
add ecx, 1
mov byte [edi], al
mov al, byte [ecx]
add edi, 1
cmp al, bl
jne 0x424170
mov byte [edi], bl
add edi, 1
lea ebp, [esp + 0x19e]
mov byte [edi], 1
add edi, 1
mov edx, ebp
xor eax, eax
cmp edx, edi
jae 0x4241b9
jmp 0x4241a0
mov ecx, eax
and ecx, 0xf
mov dl, byte [esp + ecx + 0x100]
xor byte [ebp], dl
add ebp, 1
add eax, 1
cmp ebp, edi
jb 0x4241a0
lea eax, [esp + 0x40]
call fcn.00422f40
push 0x4690f8
mov eax, 0x30
lea esi, [esp + 0x44]
call fcn.004226f0
lea eax, [esp + 0x1a0]
mov ecx, eax
sub edi, eax
push ecx
mov eax, edi
call fcn.004226f0
push 0x4690f8
mov eax, 0x30
call fcn.004226f0
add esp, 0xc
mov eax, esi
call fcn.004235a0
mov eax, 6
lea ecx, [esp + 0x110]
lea edx, [esp + 0x98]
call fcn.00423420
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x5a8]
push eax
push reloc.WS2_32.dll_bind
mov byte [esp + 0x130], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x424298
mov eax, dword [esp + 0x6d8]
cmp eax, 2
je 0x42428e
cmp eax, 3
je 0x42428e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0xf003f
push ebx
lea eax, [esp + 0x124]
push eax
push ebx
lea ecx, [esp + 0x5b8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4242ea
mov eax, 0xffff0032
jmp 0x4244f5
mov eax, 0xffff0030
jmp 0x4244f5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x6d8]
cmp esi, 1
jne 0x4242b9
mov eax, 0xffff0034
jmp 0x4244f5
lea eax, [esp + 0x59c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4242da
mov eax, 0xffff0031
jmp 0x4244f5
cmp esi, 3
jne 0x424253
xor eax, eax
jmp 0x4244f5
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x30]
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x160]
push edx
push eax
mov dword [esp + 0x44], 0x64
mov byte [esp + 0x168], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x424353
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffff0032
jmp 0x4244f5
cmp dword [esp + 0x14], 0xc
jne 0x424391
lea ecx, [esp + 0x110]
lea eax, [esp + 0x138]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x424388
cmp dl, bl
je 0x424384
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x424388
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x424368
xor eax, eax
jmp 0x42438d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4243f8
xor byte [ebp - 1], 1
lea eax, [esp + 0x40]
call fcn.00422f40
push 0x4690f8
mov eax, 0x30
lea esi, [esp + 0x44]
call fcn.004226f0
lea edx, [esp + 0x1a0]
push edx
mov eax, edi
call fcn.004226f0
push 0x4690f8
mov eax, 0x30
call fcn.004226f0
add esp, 0xc
mov eax, esi
call fcn.004235a0
mov eax, 6
lea ecx, [esp + 0x110]
lea edx, [esp + 0x98]
call fcn.00423420
mov byte [esp + 0x11c], bl
movzx eax, byte [esp + 0x100]
xor al, byte [esp + 0x98]
movzx ecx, byte [esp + 0x101]
xor cl, byte [esp + 0x99]
movzx edx, byte [esp + 0x102]
xor dl, byte [esp + 0x9a]
mov byte [ebp], al
movzx eax, byte [esp + 0x103]
xor al, byte [esp + 0x9b]
mov byte [ebp + 1], cl
movzx ecx, byte [esp + 0x104]
xor cl, byte [esp + 0x9c]
add ebp, 1
mov byte [ebp + 1], dl
movzx edx, byte [esp + 0x105]
xor dl, byte [esp + 0x9d]
add ebp, 1
mov byte [ebp + 1], al
add ebp, 1
add ebp, 1
mov byte [ebp], cl
add ebp, 1
mov byte [ebp], dl
lea eax, [esp + 0x19c]
sub ebp, eax
add ebp, 1
push ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
push ecx
push 3
push ebx
lea edx, [esp + 0x134]
push edx
push eax
mov byte [esp + 0x13e], 0x64
mov byte [esp + 0x13f], bl
mov byte [esp + 0x13c], 0x73
mov byte [esp + 0x13d], 0x69
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x42433e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x4244e1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffff0032
jmp 0x4244f5
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
and eax, 0xffff0032
mov ecx, dword [esp + 0x6c8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043ec69
add esp, 0x6bc
ret