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

Disassembly:
sub esp, 0x41c
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 4]
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelMicrosoft
push bind
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100040bb
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], ebx
lea eax, [esp + 4]
push eax
push 3
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelMicrosoft
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000430c
mov eax, dword [esp + 0x424]
push ebp
push esi
cmp eax, ebx
push edi
je 0x10004221
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
push ebx
push str.Compatible
push eax
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100041bc
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
jbe 0x100041bc
xor edi, edi
cmp ebp, ebx
mov dword [esp + 0x20], 1
jbe 0x10004196
mov edx, dword [str.f3s_42sdf]
mov ebx, 9
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebp
sub ebx, ecx
mov dword [esp + 0x18], ebx
lea ecx, [esp + edi + 0x2c]
mov esi, 9
lea eax, [ebx + ecx]
cmp eax, ebp
jb 0x1000416d
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
jle 0x10004182
mov bl, byte [edx + eax]
xor byte [ecx + eax], bl
inc eax
cmp eax, esi
jl 0x10004173
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edi, 9
sub ecx, 9
cmp edi, ebp
mov dword [esp + 0x14], ecx
jb 0x10004159
xor ebx, ebx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x438]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x2c]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
push ebx
push str.Company
push edx
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100042fe
cmp dword [esp + 0x1c], 4
jne 0x100042fe
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x434]
mov dword [ecx], eax
jmp 0x100042fe
mov edx, dword [esp + 0x438]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, ebp
xor ebp, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, ebx
jle 0x100042b5
mov ebx, 9
lea ecx, [esp + 0x2c]
sub ebx, ecx
mov ecx, dword [str.f3s_42sdf]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
lea edx, [esp + ebp + 0x2c]
mov esi, 9
lea eax, [ebx + edx]
cmp eax, edi
jl 0x1000428c
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
jle 0x100042a1
mov bl, byte [ecx + eax]
xor byte [edx + eax], bl
inc eax
cmp eax, esi
jl 0x10004292
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ebp, 9
sub edx, 9
cmp ebp, edi
mov dword [esp + 0x14], edx
jl 0x10004278
xor ebx, ebx
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x2c]
push edi
push ecx
push 3
push ebx
push str.Compatible
push edx
call esi
mov edx, dword [esp + 0x434]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, ebx
mov dword [esp + 0x18], eax
jbe 0x100042fe
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push ebx
push str.Company
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
cmp dword [esp + 0x424], ebx
je 0x1000432b
cmp dword [esp + 0x18], ebx
jne 0x1000432b
cmp dword [esp + 0x14], ebx
jne 0x1000432b
xor eax, eax
pop ebx
add esp, 0x41c
ret
mov eax, 1
pop ebx
add esp, 0x41c
ret