Function at 0x12db300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x500
push 0
mov eax, dword [esi + 0x6d8]
call eax
push eax
mov eax, dword [esi + 0x6d4]
call eax
mov edi, dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x12db33c
mov ecx, dword [esi + 0x6e0]
push edi
call ecx
push ebx
push esi
call fcn.012daba0
mov eax, dword [esi + 0x6d8]
add esp, 8
push 0x500
push 0
call eax
push eax
mov eax, dword [esi + 0x6d4]
call eax
mov ebx, eax
test ebx, ebx
jne 0x12db36d
mov ecx, dword [esi + 0x6e0]
push edi
call ecx
cmp word [esi + 0x228], 0
je 0x12db5ca
mov dword [ebp - 0x54], 0x5b82
mov eax, dword [ebp - 0x54]
xor eax, 0x53
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x54]
inc eax
xor eax, 0x65
mov word [ebp - 0x4e], ax
mov eax, dword [ebp - 0x54]
add eax, 2
xor eax, 0x63
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x54]
add eax, 3
xor eax, 0x75
mov word [ebp - 0x4a], ax
mov eax, dword [ebp - 0x54]
add eax, 4
xor eax, 0x72
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x54]
add eax, 5
xor eax, 0x69
mov word [ebp - 0x46], ax
mov eax, dword [ebp - 0x54]
add eax, 6
xor eax, 0x74
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x54]
add eax, 7
xor eax, 0x79
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x54]
add eax, 8
xor eax, 0x20
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x54]
add eax, 9
xor eax, 0x45
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x54]
add eax, 0xa
xor eax, 0x72
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x54]
add eax, 0xb
xor eax, 0x72
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x54]
add eax, 0xc
xor eax, 0x6f
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x54]
add eax, 0xd
xor eax, 0x72
mov word [ebp - 0x36], ax
mov eax, dword [ebp - 0x54]
add eax, 0xe
xor eax, 0x3a
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x54]
add eax, 0xf
xor eax, 0x20
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 0x54]
add eax, 0x10
xor eax, 0x25
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x54]
add eax, 0x11
xor eax, 0x30
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x54]
add eax, 0x12
xor eax, 0x38
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x54]
add eax, 0x13
xor eax, 0x58
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x54]
add eax, 0x14
xor eax, 0x2d
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x54]
add eax, 0x15
xor eax, 0x25
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x54]
add eax, 0x16
xor eax, 0x30
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x54]
add eax, 0x17
xor eax, 0x38
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x54]
add eax, 0x18
xor eax, 0x78
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x54]
add eax, 0x19
xor eax, 0xd
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x54]
add eax, 0x1a
xor eax, 0xa
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x54]
add eax, 0x1b
xor eax, 0xd
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x54]
add eax, 0x1c
xor eax, 0xa
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x54]
add eax, 0x1d
xor eax, 0x25
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x54]
add eax, 0x1e
xor eax, 0x6c
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x54]
add eax, 0x1f
xor eax, 0x73
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x54]
add eax, 0x20
xor eax, 0xd
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x54]
add eax, 0x21
xor eax, 0xa
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x54]
add eax, 0x22
xor eax, 0xd
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x54]
add eax, 0x23
xor eax, 0xa
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x54]
add eax, 0x24
xor eax, 0x25
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x54]
add eax, 0x25
xor eax, 0x6c
mov word [ebp - 6], ax
mov eax, dword [ebp - 0x54]
add eax, 0x26
xor eax, 0x73
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
mov ax, word [ebp - 0x50]
xor eax, eax
mov cx, word [ebp + eax*2 - 0x50]
mov edx, dword [ebp - 0x54]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0x50], dx
inc eax
cmp eax, 0x27
jb 0x12db584
xor eax, eax
mov word [ebp - 2], ax
lea eax, [esi + 0x228]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push dword [esi + 0x224]
push edi
push eax
mov eax, dword [esi + 0x768]
push ebx
call eax
add esp, 0x18
jmp 0x12db745
mov dword [ebp - 0x9c], 0xbba6
mov eax, 0xbbf5
mov word [ebp - 0x98], ax
mov edx, 0xbbd4
mov eax, 0xbbc3
mov ecx, 0xbb86
mov word [ebp - 0x96], ax
mov eax, 0xbbc5
mov word [ebp - 0x94], ax
mov eax, 0xbbd3
mov word [ebp - 0x92], ax
mov eax, 0xbbcf
mov word [ebp - 0x90], dx
mov word [ebp - 0x8e], ax
mov eax, 0xbbd2
mov word [ebp - 0x8c], ax
mov eax, 0xbbdf
mov word [ebp - 0x8a], ax
mov eax, 0xbbe3
mov word [ebp - 0x88], cx
mov word [ebp - 0x86], ax
mov eax, 0xbbc9
mov word [ebp - 0x84], dx
mov word [ebp - 0x82], dx
mov word [ebp - 0x80], ax
mov eax, 0xbb9c
mov word [ebp - 0x7e], dx
mov edx, 0xbb96
mov word [ebp - 0x7c], ax
mov eax, 0xbb83
mov word [ebp - 0x7a], cx
mov ecx, 0xbb9e
mov word [ebp - 0x78], ax
mov eax, 0xbbfe
mov word [ebp - 0x76], dx
mov word [ebp - 0x74], cx
mov word [ebp - 0x72], ax
mov eax, 0xbb8b
mov word [ebp - 0x70], ax
mov eax, 0xbb83
mov word [ebp - 0x6e], ax
mov eax, 0xbbde
mov word [ebp - 0x6c], dx
mov word [ebp - 0x6a], cx
mov ecx, 0xbbab
mov word [ebp - 0x68], ax
mov eax, 0xbbac
mov word [ebp - 0x66], cx
mov word [ebp - 0x64], ax
mov word [ebp - 0x62], cx
mov word [ebp - 0x60], ax
mov eax, 0xbb83
mov word [ebp - 0x5e], ax
mov eax, 0xbbca
mov word [ebp - 0x5c], ax
mov eax, 0xbbd5
mov word [ebp - 0x5a], ax
xor eax, eax
mov word [ebp - 0x58], ax
xor edx, edx
mov ax, word [ebp - 0x98]
nop
mov ax, word [ebp + edx*2 - 0x98]
movzx ecx, ax
movzx eax, word [ebp - 0x9c]
xor ecx, eax
mov word [ebp + edx*2 - 0x98], cx
inc edx
cmp edx, 0x20
jb 0x12db700
push dword [ebp + 8]
xor eax, eax
push dword [esi + 0x224]
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x98]
push edi
push eax
mov eax, dword [esi + 0x768]
push ebx
call eax
add esp, 0x14
push 0xa0
lea eax, [ebp - 0x13c]
push eax
push esi
call fcn.012dadc0
add esp, 0xc
lea eax, [ebp - 0x13c]
push 0x10
push eax
mov eax, dword [esi + 0x764]
push ebx
push 0
call eax
mov eax, dword [esi + 0x6e0]
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8