Function at 0x4a3870
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eec3c
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x53d100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
call fcn.004bbdc2
add esp, 4
cmp eax, edi
je 0x4a38b8
lea ecx, [ebp - 0x58]
mov dword [eax], ecx
jmp 0x4a38ba
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
push 4
mov dword [ebp - 4], 1
call fcn.004bbdc2
add esp, 4
cmp eax, edi
je 0x4a38e2
lea edx, [ebp - 0x70]
mov dword [eax], edx
jmp 0x4a38e4
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call fcn.004cb944
add esp, 4
mov dword [ebp - 0x18], eax
push edi
cmp eax, edi
jne 0x4a3a14
push str.Fatal
push str.Fatal_allocation_error
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x64]
cmp esi, edi
je 0x4a3983
mov eax, dword [ebp - 0x60]
mov ebx, eax
cmp esi, eax
je 0x4a397a
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x4a3952
mov esi, dword [ebp - 0x64]
push esi
call fcn.004bbdf1
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
push ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
call fcn.004bbdf1
add esp, 4
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x4c]
cmp esi, edi
je 0x4a39e4
mov eax, dword [ebp - 0x48]
mov ebx, eax
cmp esi, eax
je 0x4a39db
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a39d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x4a39b3
mov esi, dword [ebp - 0x4c]
push esi
call fcn.004bbdf1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x58]
push ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.004bbdf1
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea edx, [ebp - 0x58]
push edx
push ecx
mov esi, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x2c], esi
call fcn.004bc4b7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4a3a3d
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esi], ecx
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 6
mov ebx, dword [eax]
cmp dword [eax + 4], edi
je 0x4a3aa0
cmp dword [eax + 0xc], edi
lea edx, [eax + 0xc]
jge 0x4a3a7c
cmp dword [ecx - 8], edi
jge 0x4a3a70
push 0x80070057
call fcn.00422000
mov dword [ecx - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
jmp 0x4a3aa0
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 3
call fcn.00479ac0
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
add esp, 0x14
cmp esi, eax
jbe 0x4a3ac2
call fcn.004cb761
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
jmp 0x4a3ad0
mov edi, eax
cmp dword [ebp - 0x4c], eax
jbe 0x4a3adc
call fcn.004cb761
test ebx, ebx
je 0x4a3ae5
cmp ebx, dword [ebp - 0x58]
je 0x4a3aea
call fcn.004cb761
cmp esi, edi
je 0x4a3c9d
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
test ebx, ebx
jne 0x4a3c92
call fcn.004cb761
cmp esi, dword [ebx + 0x10]
jb 0x4a3b16
call fcn.004cb761
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.0042541f
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
mov dword [ebp - 0x2c], eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x10]
call fcn.004a3640
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4a3b6d
mov eax, esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0042254c
mov eax, dword [ebp - 0x10]
add esi, esi
mov edi, eax
call fcn.004a6040
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
not esi
call fcn.004cb5cb
add esp, 8
test eax, eax
jl 0x4a3a66
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x4a3a66
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push ecx
push str.RegKeyRecursiveCRC:_Value__s____NameCrc0x_.8X
push eax
call fcn.00478210
add esp, 0x10
call fcn.004a30b0
mov eax, dword [ebp + 0xc]
xor dword [eax], esi
mov eax, dword [ebp - 0x18]
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a3c22
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
call fcn.004a6040
mov esi, eax
push ecx
not esi
xor esi, dword [ebp - 0x20]
mov eax, esp
mov dword [ebp - 0x38], esp
push esi
push ebx
push str.RegKeyRecursiveCRC:_Value__s____DataCrc0x_.8X
push eax
call fcn.00478210
add esp, 0x10
call fcn.004a30b0
mov eax, dword [ebp + 0xc]
add esp, 4
xor dword [eax], esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a3c45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a3c65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4a3c99
call fcn.004cb761
xor eax, eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x4a3c80
call fcn.004cb761
add dword [ebp - 0x3c], 4
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
jmp 0x4a3ad0
mov ebx, dword [ebx]
jmp 0x4a3b0c
mov eax, dword [eax]
jmp 0x4a3c73
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cb867
add esp, 4
push 0
push 1
push 0
lea eax, [ebp - 0x70]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x38], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4a3cd6
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esi], ecx
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 9
cmp dword [eax + 4], 0
mov ebx, dword [eax]
je 0x4a3d40
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x4a3d1c
cmp dword [ecx - 8], 0
jge 0x4a3d0c
push 0x80070057
call fcn.00422000
mov dword [ecx - 0xc], 0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
jmp 0x4a3d40
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3d32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 3
call fcn.00479900
mov esi, dword [ebp - 0x64]
add esp, 0x18
cmp esi, dword [ebp - 0x60]
jbe 0x4a3d5d
call fcn.004cb761
mov edx, dword [ebp - 0x70]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], esi
lea esp, [esp]
mov esi, dword [ebp - 0x60]
cmp dword [ebp - 0x64], esi
jbe 0x4a3d7d
call fcn.004cb761
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4a3d89
cmp eax, dword [ebp - 0x70]
je 0x4a3d8e
call fcn.004cb761
mov ebx, dword [ebp - 0x30]
cmp ebx, esi
je 0x4a3f82
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4a3dda
call fcn.004cb761
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4a3db1
call fcn.004cb761
mov esi, dword [ebx]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4a3dde
cmp eax, dword [esi]
jne 0x4a3dde
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4a3e19
mov eax, dword [eax]
jmp 0x4a3da7
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4a3f7d
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004cb072
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 0xa
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x4a3e3a
mov ecx, ebx
push ecx
lea ecx, [ebp - 0x20]
call fcn.0042254c
mov esi, dword [ebp - 0x20]
or edx, 0xffffffff
cmp dword [0x542fa8], 0
jne 0x4a3e4b
call fcn.004a5fa0
lea ecx, [ebx + ebx]
xor eax, eax
test ecx, ecx
jle 0x4a3e6f
movzx ebx, byte [eax + esi]
xor ebx, edx
and ebx, 0xff
shr edx, 8
xor edx, dword [ebx*4 + 0x542ad8]
inc eax
cmp eax, ecx
jl 0x4a3e54
mov eax, dword [esi - 8]
push eax
not edx
push esi
mov ebx, edx
call fcn.004cb5cb
add esp, 8
test eax, eax
jl 0x4a3a66
cmp eax, dword [esi - 8]
jg 0x4a3a66
push ecx
mov dword [esi - 0xc], eax
xor edx, edx
mov dword [ebp - 0x38], esp
mov word [esi + eax*2], dx
mov eax, esp
push ebx
push esi
push str.RegKeyRecursiveCRC:_Key__s____NameCrc0x_.8X
push eax
call fcn.00478210
add esp, 0x10
call fcn.004a30b0
mov ecx, dword [edi]
mov edx, esp
mov dword [ebp - 0x38], esp
push 0x11223344
push esi
xor ecx, ebx
xor ecx, 0x11223344
push str.RegKeyRecursiveCRC:_Key__s__DataCrc0x_.8X
push edx
mov dword [ebp - 0x18], 0
mov dword [edi], ecx
call fcn.00478210
add esp, 0x10
call fcn.004a30b0
mov ecx, dword [edi]
mov eax, esp
mov dword [ebp - 0x38], esp
push ecx
push str.RegKeyRecursiveCRC:_CRC_so_far:_0x_.8X
push eax
call fcn.00478210
add esp, 0xc
call fcn.004a30b0
mov eax, dword [ebp + 8]
add esp, 4
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a3f35
push edi
push eax
call fcn.004a3870
mov ecx, dword [ebp - 0x18]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4a3f55
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4a3f79
call fcn.004cb761
xor eax, eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax + 0x10]
jb 0x4a3f70
call fcn.004cb761
add dword [ebp - 0x30], 4
jmp 0x4a3d70
mov eax, dword [eax]
jmp 0x4a3f63
call fcn.00422541
mov edi, dword [edi]
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x4a3fc7
mov ebx, dword [ebp - 0x60]
cmp esi, ebx
je 0x4a3fbb
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3fb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x4a3f96
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004bbdf1
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x70]
xor ebx, ebx
push edx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.004bbdf1
add esp, 4
mov dword [ebp - 4], 0xc
mov esi, dword [ebp - 0x4c]
cmp esi, ebx
je 0x4a4033
mov eax, dword [ebp - 0x48]
mov ebx, eax
cmp esi, eax
je 0x4a4028
lea esp, [esp]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a401e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebx
jne 0x4a4000
mov esi, dword [ebp - 0x4c]
push esi
call fcn.004bbdf1
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x58]
push ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.004bbdf1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret