Function at 0x10006950
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 [0x10135018]
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 0x10006a0a
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 0x100069ec
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 0x10006a0a
push 0xb
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.PassAccount
push dword [ebp - 0x20]
call edi
jmp 0x10006a0a
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100069f2
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x10135e6f
call fcn.10006900
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 0x10006a52
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xb
push eax
push 0x10135e64
push 0
push 0
push 0x10127a80
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 0x10006b0c
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 0x10006ad8
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 0x10006b0c
push 0xb
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.CharAccount
push dword [ebp - 0x20]
call edi
jmp 0x10006b0c
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 + 0x10127ad0]
xor al, byte [ebp + esi - 0x14]
mov byte [esi + 0x10135e7a], al
inc esi
cmp esi, 0xb
jl 0x10006ae0
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 0x10006bba
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 0x10006b92
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 0x10006bba
push 0x11
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.ServerIpAddress
push dword [ebp - 0x20]
call edi
jmp 0x10006bba
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 + 0x10127ad0]
xor al, byte [ebp + esi - 0x18]
mov byte [esi + 0x10135e85], al
inc esi
cmp esi, 0x11
jl 0x10006b94
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 0x10006c41
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 2
push eax
push 0x10135e96
push 0
push 0
push str.ServerPORT
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006c41
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 0x10006c41
push 2
push 0x10135e96
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 0x10006ced
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
push 0x10135ecc
push 0
push 0
push str.AutoLogin
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006cc6
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 0x10006cc6
push 4
push 0x10135ecc
push 4
push eax
push str.AutoLogin
push dword [ebp - 0x20]
call edi
mov ecx, 0x10135e6f
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006cd0
movzx eax, byte [0x10135ed4]
sub ecx, edx
mov edx, 1
cmovne eax, edx
mov byte [0x10135ed4], al
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 0x10006db4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
push 0x10135ed0
push 0
push 0
push str.AutoLoginLogged
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006d80
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 0x10006dba
push 4
push 0x10135ed0
push 4
push eax
push str.AutoLoginLogged
push dword [ebp - 0x20]
mov dword [0x10135ed0], 1
call edi
jmp 0x10006dba
cmp dword [0x10135ed0], 0
jne 0x10006daa
push 4
push 0x10135ed0
push 4
push 0
push str.AutoLoginLogged
push dword [ebp - 0x20]
mov dword [0x10135ed0], 1
call edi
jmp 0x10006db4
mov dword [0x10135ed0], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 0x20]
call ebx
mov ecx, 0x1013c815
mov eax, 0x10135e85
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006df0
test dl, dl
je 0x10006dec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006df0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006dd0
xor eax, eax
jmp 0x10006df5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006e6c
lea eax, [ebp - 0x20]
mov dword [0x10135ecc], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
mov dword [0x10135ed0], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006e67
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
push 0x100072e0
push 0x4d349f
push 0xe8
call fcn.100671e0
push 0x100072e0
push 0x4d34be
push 0xe8
call fcn.100671e0
push 0x10007490
push 0x663ec3
push 0xe8
call fcn.100671e0
push 0x100075b0
push 0x4cf567
push 0xe8
call fcn.100671e0
push 0x100075b0
push 0x4d35e0
push 0xe8
call fcn.100671e0
push 0x100075b0
push 0x772559
push 0xe8
call fcn.100671e0
mov ecx, dword [ebp - 4]
add esp, 0x48
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1008173f
mov esp, ebp
pop ebp
ret