Function at 0x12bc840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xe13f25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
cmp byte [ebp + 8], 2
jne 0x12bc9f0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 8]
call fcn.0130bbd0
mov edx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], edx
movzx eax, byte [edx]
mov ecx, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x80000000
sub ecx, 1
je 0x12bc8e3
sub ecx, 1
je 0x12bc8d8
mov dword [ebp - 0x28], 0x80000000
sub eax, 1
je 0x12bc8e3
sub eax, 1
je 0x12bc8d8
mov dword [ebp - 0x28], 1
jmp 0x12bc8eb
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
jmp 0x12bc8eb
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
call fcn.0130b190
test al, al
je 0x12bc9f0
nop
lea ecx, [ebp - 0x44]
call fcn.0130b2a0
mov edi, eax
mov dword [ebp - 0x23], 0xfde7f5fe
mov dword [ebp - 0x1f], 0xf7f8f6c8
xor eax, eax
mov word [ebp - 0x1b], 0xfe
mov byte [ebp - 0x19], 1
lea ecx, [eax - 0x6d]
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 9
jb 0x12bc924
lea eax, [ebp - 0x23]
mov byte [ebp - 0x19], 0
push eax
mov ecx, edi
call fcn.01312600
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call fcn.01312740
cmp dword [ebp + 0x2c], 0x10
lea ecx, [ebp + 0x18]
cmovae ecx, dword [ebp + 0x18]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x12bc961
mov eax, dword [eax]
push dword [ebp + 0x28]
push ecx
mov ecx, eax
call fcn.0131e290
mov ecx, dword [ebp - 0x48]
add esp, 8
mov bl, al
cmp ecx, 0x10
jb 0x12bc9a5
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x12bc99b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x12bca8c
push ecx
push edx
call fcn.01385783
add esp, 8
test bl, bl
jne 0x12bca39
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
sub eax, 1
je 0x12bc9c8
sub eax, 1
je 0x12bc9c2
inc dword [ebp - 0x38]
jmp 0x12bc9dc
add dword [ebp - 0x3c], 0x10
jmp 0x12bc9dc
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0130fa00
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
call fcn.0130b190
test al, al
jne 0x12bc900
xorps xmm0, xmm0
lea ecx, [ebp + 8]
movq qword [esi + 8], xmm0
mov byte [esi], 5
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0130bff0
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0x10
jb 0x12bca79
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x12bca6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x12bca8c
jmp 0x12bca6f
push edi
mov ecx, esi
call fcn.0130c050
lea ecx, [ebp + 8]
call fcn.0130bff0
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0x10
jb 0x12bca79
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x12bca6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x12bca8c
push ecx
push edx
call fcn.01385783
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0138aa20
int3