Function at 0x12c9794
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x500
push 0
mov eax, dword [esi + 0x6d4]
call eax
push eax
mov eax, dword [esi + 0x6d0]
call eax
mov edi, dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x12c97d0
mov ecx, dword [esi + 0x6dc]
push edi
call ecx
push ebx
push esi
call fcn.012c7be4
mov eax, dword [esi + 0x6d4]
add esp, 8
push 0x500
push 0
call eax
push eax
mov eax, dword [esi + 0x6d0]
call eax
mov ebx, eax
test ebx, ebx
jne 0x12c9801
mov ecx, dword [esi + 0x6dc]
push edi
call ecx
lea eax, [esi + 0x228]
test eax, eax
je 0x12c9995
mov dword [ebp - 0x90], 0xb39
mov eax, 0xb6a
mov word [ebp - 0x8c], ax
mov edx, 0xb4b
mov eax, 0xb5c
mov ecx, 0xb19
mov word [ebp - 0x8a], ax
mov eax, 0xb5a
mov word [ebp - 0x88], ax
mov eax, 0xb4c
mov word [ebp - 0x86], ax
mov eax, 0xb50
mov word [ebp - 0x84], dx
mov word [ebp - 0x82], ax
mov eax, 0xb4d
mov word [ebp - 0x80], ax
mov eax, 0xb40
mov word [ebp - 0x7e], ax
mov eax, 0xb7c
mov word [ebp - 0x7c], cx
mov word [ebp - 0x7a], ax
mov eax, 0xb56
mov word [ebp - 0x78], dx
mov word [ebp - 0x76], dx
mov word [ebp - 0x74], ax
mov eax, 0xb03
mov word [ebp - 0x72], dx
mov edx, 0xb09
mov word [ebp - 0x70], ax
mov eax, 0xb1c
mov word [ebp - 0x6e], cx
mov ecx, 0xb01
mov word [ebp - 0x6c], ax
mov eax, 0xb61
mov word [ebp - 0x6a], dx
mov word [ebp - 0x68], cx
mov word [ebp - 0x66], ax
mov eax, 0xb14
mov word [ebp - 0x64], ax
mov eax, 0xb1c
mov word [ebp - 0x62], ax
mov eax, 0xb41
mov word [ebp - 0x60], dx
mov edx, 0xb33
mov word [ebp - 0x5e], cx
mov ecx, 0xb55
mov word [ebp - 0x5c], ax
mov eax, 0xb1c
mov word [ebp - 0x5a], dx
mov word [ebp - 0x58], dx
mov word [ebp - 0x56], ax
mov eax, 0xb4a
mov word [ebp - 0x54], cx
mov word [ebp - 0x52], ax
mov word [ebp - 0x50], dx
mov word [ebp - 0x4e], dx
mov edx, 0xb1c
mov word [ebp - 0x4c], dx
mov word [ebp - 0x4a], cx
mov word [ebp - 0x48], ax
xor eax, eax
mov word [ebp - 0x46], ax
xor edx, edx
mov ax, word [ebp - 0x8c]
nop word [eax + eax]
mov ax, word [ebp + edx*2 - 0x8c]
movzx ecx, ax
movzx eax, word [ebp - 0x90]
xor ecx, eax
mov word [ebp + edx*2 - 0x8c], cx
inc edx
cmp edx, 0x23
jb 0x12c9944
xor eax, eax
mov word [ebp - 0x46], ax
lea eax, [esi + 0x228]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x8c]
push dword [esi + 0x224]
push edi
push eax
mov eax, dword [esi + 0x754]
push ebx
call eax
add esp, 0x18
jmp 0x12c9b63
mov dword [ebp - 0x44], 0xbaca
mov eax, dword [ebp - 0x44]
xor eax, 0x53
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
inc eax
xor eax, 0x65
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x44]
add eax, 2
xor eax, 0x63
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x44]
add eax, 3
xor eax, 0x75
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x44]
add eax, 4
xor eax, 0x72
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x44]
add eax, 5
xor eax, 0x69
mov word [ebp - 0x36], ax
mov eax, dword [ebp - 0x44]
add eax, 6
xor eax, 0x74
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x44]
add eax, 7
xor eax, 0x79
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 0x44]
add eax, 8
xor eax, 0x20
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x44]
add eax, 9
xor eax, 0x45
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x44]
add eax, 0xa
xor eax, 0x72
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x44]
add eax, 0xb
xor eax, 0x72
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x44]
add eax, 0xc
xor eax, 0x6f
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
add eax, 0xd
xor eax, 0x72
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x44]
add eax, 0xe
xor eax, 0x3a
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x44]
add eax, 0xf
xor eax, 0x20
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x44]
add eax, 0x10
xor eax, 0x25
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x44]
add eax, 0x11
xor eax, 0x30
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x44]
add eax, 0x12
xor eax, 0x38
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
add eax, 0x13
xor eax, 0x58
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x44]
add eax, 0x14
xor eax, 0x2d
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x44]
add eax, 0x15
xor eax, 0x25
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x44]
add eax, 0x16
xor eax, 0x30
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x44]
add eax, 0x17
xor eax, 0x38
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x44]
add eax, 0x18
xor eax, 0x78
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x44]
add eax, 0x19
xor eax, 0xa
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x44]
add eax, 0x1a
xor eax, 0xa
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x44]
add eax, 0x1b
xor eax, 0x25
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x44]
add eax, 0x1c
xor eax, 0x6c
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x44]
add eax, 0x1d
xor eax, 0x73
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0x40]
xor eax, eax
mov cx, word [ebp + eax*2 - 0x40]
mov edx, dword [ebp - 0x44]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0x40], dx
inc eax
cmp eax, 0x1e
jb 0x12c9b29
push dword [ebp + 8]
xor eax, eax
push dword [esi + 0x224]
mov word [ebp - 4], ax
lea eax, [ebp - 0x40]
push edi
push eax
mov eax, dword [esi + 0x754]
push ebx
call eax
add esp, 0x14
push 0xa0
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.012c7dd4
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x10
push eax
mov eax, dword [esi + 0x750]
push ebx
push 0
call eax
mov eax, dword [esi + 0x6dc]
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8