Function at 0x121e2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
inc eax
push 0x40
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x54]
push eax
push dword [esi + 0x54c]
lea edi, [esi + 0x18]
mov dword [esi + 0x434], 0xffff
call dword [esi + 0x4f0]
test eax, eax
je 0x1227d
xor ecx, ecx
mov cx, word [edi + 0x418]
mov eax, ecx
shr eax, 0xa
and eax, 3
dec eax
je 0x12253
dec eax
je 0x12245
dec eax
jne 0x12267
mov ebx, dword [esi + 0x10]
sub ebx, 4
shl ebx, 5
jmp 0x12267
movzx eax, byte [edi + 0x17]
dec eax
je 0x12264
dec eax
jne 0x12267
push 0x40
jmp 0x12266
test ch, 0x10
je 0x1225e
cmp dword [esi + 0x14], 0
jmp 0x12262
cmp byte [edi + 0x17], 0
je 0x12267
push 0x20
pop ebx
push 0x20
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.00015422
test eax, eax
je 0x12280
jmp 0x12347
mov ebx, dword [ebp + 8]
xor edx, edx
xor eax, eax
cmp word [ebp + eax*2 - 0x54], dx
jne 0x122f9
inc eax
cmp eax, 0x20
jb 0x12284
mov dword [ebp - 0x10], edx
xor eax, eax
cmp word [ebp + eax*2 - 0x54], 0xffff
jne 0x122fe
inc eax
cmp eax, 0x20
jb 0x12296
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
xor ecx, ecx
mov ax, dx
add ax, word [ebp + ecx*2 - 0x54]
inc ecx
cmp ecx, 0x1f
jb 0x122b0
cmp ax, word [ebp - 0x16]
je 0x122c4
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], edx
jne 0x1233f
lea eax, [edi + 0xdf]
cmp byte [eax], 0
push 0x20
sete cl
mov byte [eax], cl
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.00015422
test eax, eax
jne 0x12347
xor ecx, ecx
cmp word [ebp + eax*2 - 0x54], cx
jne 0x12303
inc eax
cmp eax, 0x20
jb 0x122ea
jmp 0x12306
mov dword [ebp - 0xc], edx
jmp 0x12294
mov dword [ebp - 8], edx
jmp 0x122a8
mov dword [ebp - 0xc], ecx
xor eax, eax
cmp dword [ebp - 0xc], ecx
jne 0x12349
cmp word [ebp + eax*2 - 0x54], 0xffff
jne 0x1231e
inc eax
cmp eax, 0x20
jb 0x1230d
jmp 0x12321
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], ecx
jne 0x12347
mov dword [ebp - 4], ecx
mov ax, cx
add ax, word [ebp + ecx*2 - 0x54]
inc ecx
cmp ecx, 0x1f
jb 0x1232c
cmp ax, word [ebp - 0x16]
jne 0x12347
xor edx, edx
mov eax, dword [ebp - 0x2e]
cmp byte [edi + 0x1c], al
je 0x1234f
xor eax, eax
inc eax
jmp 0x12508
cmp byte [edi + 0x13], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
jne 0x123d1
and dword [ebp - 0xc], 0xff
jbe 0x12454
lea esi, [edi + 0x20]
xor eax, eax
mov ax, word [ebp + edx*2 - 0x54]
mov dl, al
and dl, 7
mov cx, ax
shr cx, 3
mov ebx, eax
shr ebx, 5
shl bl, 3
or bl, dl
shl bl, 4
mov dl, cl
and dl, 1
or bl, dl
xor edx, edx
mov byte [esi + 4], bl
mov dl, al
shr dl, 6
xor ebx, ebx
mov bx, word [esi]
and ecx, 2
shr eax, 6
and eax, 1
or dword [ebp - 0x14], eax
and edx, 1
and ebx, 0xfffffffc
or edx, ebx
or edx, ecx
mov word [esi], dx
mov edx, dword [ebp - 0x10]
inc edx
add esi, 0xa
cmp edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
jb 0x1236e
jmp 0x12451
and dword [ebp - 0xc], 0xff
jbe 0x12454
lea eax, [edi + 0x25]
mov esi, dword [ebp - 0x10]
lea esi, [ebp + esi*2 - 0x54]
mov cx, word [esi]
mov word [ebp - 6], cx
shr word [ebp - 6], 5
mov bl, byte [ebp - 6]
mov word [ebp - 2], cx
shr word [ebp - 2], 3
mov dl, byte [ebp - 2]
shr cl, 6
and dl, 1
and cl, 3
shl bl, 7
or dl, bl
mov byte [eax - 1], dl
mov dl, byte [ebp - 6]
shl dl, 4
or cl, dl
mov dl, byte [esi]
shl cl, 3
and dl, 7
or cl, dl
mov byte [eax], cl
mov cl, byte [ebp - 2]
and cl, 1
neg cl
sbb cl, cl
add eax, 0xa
and ecx, 0x7f
mov byte [eax - 9], cl
xor ecx, ecx
mov cl, byte [eax - 0xf]
xor cl, byte [ebp - 2]
and ecx, 2
xor word [eax - 0xf], cx
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jb 0x123dd
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x32]
mov bl, byte [edi + 0x13]
xor eax, eax
xor ecx, ecx
mov al, dl
mov cl, dl
and eax, 1
and ecx, 0xc
shl eax, 4
or eax, ecx
xor ecx, ecx
mov cx, word [edi + 0xc]
shl eax, 1
and ecx, 0xf9c7
or eax, ecx
cmp bl, 1
mov word [edi + 0xc], ax
jne 0x124b0
xor ecx, ecx
mov cx, dx
shr cx, 5
mov esi, edx
shr esi, 2
and esi, 0xffff0100
and eax, 0xfffffe3f
or esi, eax
and ecx, 0xffff00c0
or esi, ecx
mov word [edi + 0xc], si
mov esi, dword [ebp + 8]
xor eax, eax
mov al, dl
shr al, 4
xor al, byte [edi + 0xc]
and eax, 1
xor word [edi + 0xc], ax
cmp bl, 1
je 0x124e4
cmp dword [ebp - 0x14], 0
jne 0x124e4
test dl, 2
je 0x124e4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jbe 0x124e4
lea eax, [edi + 0x20]
or byte [eax], 1
add eax, 0xa
dec ecx
jne 0x124db
mov al, byte [ebp - 0x2f]
push esi
mov byte [edi + 0x10], al
call fcn.00011c56
test eax, eax
jne 0x12506
push esi
call fcn.00011cf8
test eax, eax
jne 0x12506
mov al, byte [ebp - 0x30]
and al, 0xf
mov byte [edi + 0x1e], al
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4