Function at 0x12f85e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4b0]
push eax
push 0x104
mov eax, dword [edi + 0x758]
call eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [edi + 0x75c]
call eax
xor eax, eax
mov word [ebp - 0x2a8], ax
lea eax, [ebp - 0x2a8]
push 0x104
push eax
push dword [edi + 0x704]
mov eax, dword [edi + 0x67c]
call eax
test eax, eax
je 0x12f865d
push 0x5c
lea eax, [ebp - 0x2a8]
push 0x104
push eax
call fcn.012f8c60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x12f865d
add esi, 2
jne 0x12f86e8
xor eax, eax
mov ecx, 0x9eab
mov word [ebp - 0x2a8], ax
mov eax, 0x9eaa
mov dword [ebp - 0x80], 0x9ee5
mov word [ebp - 0x7c], cx
mov word [ebp - 0x7a], ax
mov eax, 0x9ea4
mov word [ebp - 0x78], cx
mov word [ebp - 0x76], ax
mov eax, 0x9ea8
mov word [ebp - 0x74], ax
mov eax, 0x9ea0
mov word [ebp - 0x72], ax
xor eax, eax
mov word [ebp - 0x70], ax
xor edx, edx
mov ax, word [ebp - 0x7c]
nop word [eax + eax]
mov ax, word [ebp + edx*2 - 0x7c]
movzx ecx, ax
movzx eax, word [ebp - 0x80]
xor ecx, eax
mov word [ebp + edx*2 - 0x7c], cx
inc edx
cmp edx, 6
jb 0x12f86b0
xor eax, eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.012f8cf0
add esp, 8
lea esi, [ebp - 0x2a8]
mov dword [ebp - 0x6c], 0xe6d3
mov eax, dword [ebp - 0x6c]
xor eax, 0x25
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x6c]
inc eax
xor eax, 0x6c
mov word [ebp - 0x66], ax
mov eax, dword [ebp - 0x6c]
add eax, 2
xor eax, 0x73
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x6c]
add eax, 3
xor eax, 0x5c
mov word [ebp - 0x62], ax
mov eax, dword [ebp - 0x6c]
add eax, 4
xor eax, 0x41
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x6c]
add eax, 5
xor eax, 0x70
mov word [ebp - 0x5e], ax
mov eax, dword [ebp - 0x6c]
add eax, 6
xor eax, 0x70
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x6c]
add eax, 7
xor eax, 0x53
mov word [ebp - 0x5a], ax
mov eax, dword [ebp - 0x6c]
add eax, 8
xor eax, 0x69
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x6c]
add eax, 9
xor eax, 0x67
mov word [ebp - 0x56], ax
mov eax, dword [ebp - 0x6c]
add eax, 0xa
xor eax, 0x6e
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x6c]
add eax, 0xb
xor eax, 0x34
mov word [ebp - 0x52], ax
mov eax, dword [ebp - 0x6c]
add eax, 0xc
xor eax, 0x77
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x6c]
add eax, 0xd
xor eax, 0x5f
mov word [ebp - 0x4e], ax
mov eax, dword [ebp - 0x6c]
add eax, 0xe
xor eax, 0x25
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x6c]
add eax, 0xf
xor eax, 0x6c
mov word [ebp - 0x4a], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x10
xor eax, 0x73
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x11
xor eax, 0x5f
mov word [ebp - 0x46], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x12
xor eax, 0x25
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x13
xor eax, 0x30
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x14
xor eax, 0x34
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x15
xor eax, 0x64
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x16
xor eax, 0x25
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x17
xor eax, 0x30
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x18
xor eax, 0x32
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x19
xor eax, 0x64
mov word [ebp - 0x36], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x1a
xor eax, 0x25
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x1b
xor eax, 0x30
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x1c
xor eax, 0x32
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x1d
xor eax, 0x64
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x1e
xor eax, 0x5f
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x1f
xor eax, 0x25
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x20
xor eax, 0x30
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x21
xor eax, 0x32
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x22
xor eax, 0x64
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x23
xor eax, 0x25
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x24
xor eax, 0x30
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x25
xor eax, 0x32
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x26
xor eax, 0x64
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x27
xor eax, 0x25
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x28
xor eax, 0x30
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x29
xor eax, 0x32
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x2a
xor eax, 0x64
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x2b
xor eax, 0x5f
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x2c
xor eax, 0x25
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x2d
xor eax, 0x64
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x2e
xor eax, 0x2e
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x2f
xor eax, 0x64
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x30
xor eax, 0x6d
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x6c]
add eax, 0x31
xor eax, 0x70
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0x68]
xor eax, eax
mov cx, word [ebp + eax*2 - 0x68]
mov edx, dword [ebp - 0x6c]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0x68], dx
inc eax
cmp eax, 0x32
jb 0x12f8980
xor eax, eax
mov word [ebp - 4], ax
movzx eax, word [ebp - 0x82]
push eax
movzx eax, word [ebp - 0x84]
push eax
movzx eax, word [ebp - 0x86]
push eax
movzx eax, word [ebp - 0x88]
push eax
movzx eax, word [ebp - 0x8a]
push eax
movzx eax, word [ebp - 0x8e]
push eax
movzx eax, word [ebp - 0x90]
push eax
push esi
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6b8]
push eax
mov eax, dword [edi + 0x768]
call eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp - 0xa0]
push eax
push edi
call fcn.012f8ab0
add esp, 0x38
test eax, eax
js 0x12f8aa8
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x6b8]
push eax
mov eax, dword [edi + 0x688]
call eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x12f8a4b
pop ebx
pop edi
mov eax, 0xe0d00751
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x740]
call eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x9c], eax
test ecx, ecx
push 0
push 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x98], ecx
cmove eax, edx
mov dword [ebp - 0x94], 1
push eax
push dword [ebp + 0x10]
mov eax, dword [edi + 0x754]
push ebx
call eax
push eax
push 0xffffffffffffffff
call dword [ebp + 8]
mov ecx, dword [edi + 0x694]
mov esi, eax
push ebx
call ecx
xor ecx, ecx
mov eax, 0xe0d00770
test esi, esi
pop ebx
cmovne eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret