Function at 0x418030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, 0x655510
mov esi, ebx
sub edi, ebx
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x418050
mov ecx, str.locale_ymir
sub ecx, edx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x418064
push str.ymir
push ebx
call fcn.005a1103
add esp, 8
test eax, eax
jne 0x4181a8
xor edx, edx
mov cl, 0x74
call fcn.00406b30
mov edx, 1
mov byte [ebp - 0x18], al
mov cl, 0x65
call fcn.00406b30
mov edx, 2
mov byte [ebp - 0x17], al
mov cl, 0x73
call fcn.00406b30
mov edx, 3
mov byte [ebp - 0x16], al
mov cl, 0x74
call fcn.00406b30
mov edx, 4
mov byte [ebp - 0x15], al
call fcn.00406b30
mov edx, 5
mov byte [ebp - 0x14], al
mov cl, 0x65
call fcn.00406b30
mov edx, 6
mov byte [ebp - 0x13], al
mov cl, 0x73
call fcn.00406b30
mov edx, 7
mov byte [ebp - 0x12], al
mov cl, 0x74
call fcn.00406b30
mov edx, 8
mov byte [ebp - 0x11], al
call fcn.00406b30
mov edx, 9
mov byte [ebp - 0x10], al
mov cl, 0x65
call fcn.00406b30
mov edx, 0xa
mov byte [ebp - 0xf], al
mov cl, 0x73
call fcn.00406b30
mov edx, 0xb
mov byte [ebp - 0xe], al
mov cl, 0x74
call fcn.00406b30
mov edx, 0xc
mov byte [ebp - 0xd], al
call fcn.00406b30
mov edx, 0xd
mov byte [ebp - 0xc], al
mov cl, 0x65
call fcn.00406b30
mov edx, 0xe
mov byte [ebp - 0xb], al
mov cl, 0x73
call fcn.00406b30
mov edx, 0xf
mov byte [ebp - 0xa], al
mov cl, 0x74
call fcn.00406b30
mov byte [ebp - 9], al
xor ecx, ecx
mov byte [ebp - 8], 0
mov al, cl
add al, 0x30
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0x10
jb 0x418174
lea ecx, [ebp - 0x18]
mov byte [ebp - 8], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418190
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, 0x6da01c
call fcn.00406cf0
push str.we_korea
push ebx
call fcn.005a1103
add esp, 8
test eax, eax
jne 0x4182e0
xor edx, edx
mov cl, 0x31
call fcn.00406b30
mov edx, 1
mov byte [ebp - 0x18], al
mov cl, 0x32
call fcn.00406b30
mov edx, 2
mov byte [ebp - 0x17], al
mov cl, 0x33
call fcn.00406b30
mov edx, 3
mov byte [ebp - 0x16], al
mov cl, 0x34
call fcn.00406b30
mov edx, 4
mov byte [ebp - 0x15], al
mov cl, 0x61
call fcn.00406b30
mov edx, 5
mov byte [ebp - 0x14], al
mov cl, 0x62
call fcn.00406b30
mov edx, 6
mov byte [ebp - 0x13], al
mov cl, 0x63
call fcn.00406b30
mov edx, 7
mov byte [ebp - 0x12], al
mov cl, 0x64
call fcn.00406b30
mov edx, 8
mov byte [ebp - 0x11], al
mov cl, 0x35
call fcn.00406b30
mov edx, 9
mov byte [ebp - 0x10], al
mov cl, 0x36
call fcn.00406b30
mov edx, 0xa
mov byte [ebp - 0xf], al
mov cl, 0x37
call fcn.00406b30
mov edx, 0xb
mov byte [ebp - 0xe], al
mov cl, 0x38
call fcn.00406b30
mov edx, 0xc
mov byte [ebp - 0xd], al
mov cl, 0x65
call fcn.00406b30
mov edx, 0xd
mov byte [ebp - 0xc], al
mov cl, 0x66
call fcn.00406b30
mov edx, 0xe
mov byte [ebp - 0xb], al
mov cl, 0x67
call fcn.00406b30
mov edx, 0xf
mov byte [ebp - 0xa], al
mov cl, 0x68
call fcn.00406b30
mov byte [ebp - 9], al
xor eax, eax
mov byte [ebp - 8], 0
lea ecx, [eax + 0x30]
xor byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 0x10
jb 0x4182b1
lea edx, [ebp - 0x18]
mov byte [ebp - 8], 0
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4182c8
sub edx, esi
lea eax, [ebp - 0x18]
push edx
push eax
mov ecx, 0x6da01c
call fcn.00406cf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00552c0c
mov esp, ebp
pop ebp
ret