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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1012f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10006b2a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xb
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.PassAccount
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006b0c
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006b2a
push 0xb
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.PassAccount
push dword [ebp - 0x20]
call edi
jmp 0x10006b2a
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006b12
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x1012fe6f
call fcn.10006a20
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006b72
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xb
push eax
push 0x1012fe64
push 0
push 0
push 0x101220cc
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x20]
call ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006c2c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xb
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.CharAccount
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006bf8
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006c2c
push 0xb
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.CharAccount
push dword [ebp - 0x20]
call edi
jmp 0x10006c2c
xor esi, esi
nop word [eax + eax]
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov al, byte [ecx + 0x1012211c]
xor al, byte [ebp + esi - 0x14]
mov byte [esi + 0x1012fe7a], al
inc esi
cmp esi, 0xb
jl 0x10006c00
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x20]
call ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006cda
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x11
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push str.ServerIpAddress
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006cb2
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006cda
push 0x11
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.ServerIpAddress
push dword [ebp - 0x20]
call edi
jmp 0x10006cda
xor esi, esi
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov al, byte [ecx + 0x1012211c]
xor al, byte [ebp + esi - 0x18]
mov byte [esi + 0x1012fe85], al
inc esi
cmp esi, 0x11
jl 0x10006cb4
push dword [ebp - 0x20]
call ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006d61
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 2
push eax
push 0x1012fe96
push 0
push 0
push str.ServerPORT
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006d61
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006d61
push 2
push 0x1012fe96
push 4
push eax
push str.ServerPORT
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
call ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006e02
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
push 0x1012fecc
push 0
push 0
push str.AutoLogin
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006de2
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006de2
push 4
push 0x1012fecc
push 4
push eax
push str.AutoLogin
push dword [ebp - 0x20]
call edi
mov ecx, 0x1012fe6f
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006df0
sub ecx, edx
je 0x10006e02
mov byte [0x1012fed4], 1
push dword [ebp - 0x20]
call ebx
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006ec9
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
push 0x1012fed0
push 0
push 0
push str.AutoLoginLogged
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006e95
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x20]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call esi
test eax, eax
jne 0x10006ecf
push 4
push 0x1012fed0
push 4
push eax
push str.AutoLoginLogged
push dword [ebp - 0x20]
mov dword [0x1012fed0], 1
call edi
jmp 0x10006ecf
cmp dword [0x1012fed0], 0
jne 0x10006ebf
push 4
push 0x1012fed0
push 4
push 0
push str.AutoLoginLogged
push dword [ebp - 0x20]
mov dword [0x1012fed0], 1
call edi
jmp 0x10006ec9
mov dword [0x1012fed0], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 0x20]
call ebx
mov ecx, 0x10136965
mov eax, 0x1012fe85
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006f00
test dl, dl
je 0x10006efc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006f00
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006ee0
xor eax, eax
jmp 0x10006f05
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006f7c
lea eax, [ebp - 0x20]
mov dword [0x1012fecc], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
mov dword [0x1012fed0], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006f77
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call esi
push 4
test eax, eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.AutoLoginLogged
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fd54
mov esp, ebp
pop ebp
ret