Function at 0x55d96b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi + 0x6a]
cmp eax, 0x106
jae 0x55d83b
push esi
call fcn.0055d650
mov eax, dword [esi + 0x6a]
add esp, 4
cmp eax, 0x106
jae 0x55d833
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x55db23
test eax, eax
je 0x55dab7
cmp eax, 3
jb 0x55d881
mov eax, dword [esi + 0x3e]
mov ecx, dword [esi + 0x4e]
mov edx, dword [esi + 0x62]
mov edi, dword [esi + 0x2e]
shl eax, cl
xor ecx, ecx
mov cl, byte [edi + edx + 2]
mov edi, dword [esi + 0x4a]
xor eax, ecx
mov ecx, dword [esi + 0x3a]
and eax, edi
xor edi, edi
mov dword [esi + 0x3e], eax
mov di, word [ecx + eax*2]
mov eax, dword [esi + 0x2a]
mov ecx, dword [esi + 0x36]
and eax, edx
mov word [ecx + eax*2], di
mov edx, dword [esi + 0x3e]
mov eax, dword [esi + 0x3a]
mov cx, word [esi + 0x62]
mov word [eax + edx*2], cx
test edi, edi
je 0x55d8a9
mov edx, dword [esi + 0x62]
mov eax, dword [esi + 0x22]
sub edx, edi
xlatb
sub eax, 0x106
cmp edx, eax
ja 0x55d8a9
cmp dword [esi + 0x7e], 2
je 0x55d8a9
push edi
push esi
call fcn.0055db30
add esp, 8
mov dword [esi + 0x56], eax
mov eax, dword [esi + 0x56]
cmp eax, 3
jb 0x55da01
mov edx, dword [esi + 0x1693]
mov ebp, dword [esi + 0x1697]
mov cl, al
mov ax, word [esi + 0x62]
sub ax, word [esi + 0x66]
sub cl, 3
mov byte [esp + 0x14], cl
mov word [ebp + edx*2], ax
mov edx, dword [esi + 0x168b]
mov ebp, dword [esi + 0x1693]
add eax, 0xffff
mov byte [edx + ebp], cl
mov edx, dword [esi + 0x1693]
mov ecx, dword [esp + 0x14]
inc edx
mov dword [esi + 0x1693], edx
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx + 0xd3cfa4]
inc word [esi + edx*4 + 0x48e]
cmp ax, 0x100
lea ecx, [esi + edx*4 + 0x48e]
jae 0x55d930
and eax, 0xffff
xor ecx, ecx
mov cl, byte [eax + 0xd3cda4]
mov eax, ecx
jmp 0x55d942
and eax, 0xffff
shr eax, 7
xor edx, edx
mov dl, byte [eax + 0xd3cea4]
mov eax, edx
inc word [esi + eax*4 + 0x97e]
mov eax, dword [esi + 0x168f]
mov edx, dword [esi + 0x1693]
dec eax
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi + 0x56]
mov edx, dword [esi + 0x76]
sete cl
mov ebp, ecx
mov ecx, dword [esi + 0x6a]
sub ecx, eax
cmp eax, edx
mov dword [esi + 0x6a], ecx
ja 0x55d9d0
cmp ecx, 3
jb 0x55d9d0
dec eax
mov dword [esi + 0x56], eax
mov edx, dword [esi + 0x62]
mov eax, dword [esi + 0x2e]
mov edi, dword [esi + 0x3e]
inc edx
xor ecx, ecx
mov dword [esi + 0x62], edx
mov cl, byte [edx + eax + 2]
mov eax, ecx
mov ecx, dword [esi + 0x4e]
shl edi, cl
mov ecx, dword [esi + 0x3a]
xor eax, edi
mov edi, dword [esi + 0x4a]
and eax, edi
xor edi, edi
mov dword [esi + 0x3e], eax
mov di, word [ecx + eax*2]
mov ecx, dword [esi + 0x2a]
mov eax, dword [esi + 0x36]
and edx, ecx
mov word [eax + edx*2], di
mov ecx, dword [esi + 0x3e]
mov edx, dword [esi + 0x3a]
mov ax, word [esi + 0x62]
mov word [edx + ecx*2], ax
mov eax, dword [esi + 0x56]
dec eax
mov dword [esi + 0x56], eax
jne 0x55d97b
jmp 0x55da6c
mov ecx, dword [esi + 0x62]
mov edx, dword [esi + 0x2e]
add ecx, eax
xor eax, eax
add edx, ecx
mov dword [esi + 0x62], ecx
mov ecx, dword [esi + 0x4e]
mov dword [esi + 0x56], 0
mov al, byte [edx]
mov dword [esi + 0x3e], eax
shl eax, cl
xor ecx, ecx
mov cl, byte [edx + 1]
xor eax, ecx
mov ecx, dword [esi + 0x4a]
and eax, ecx
mov dword [esi + 0x3e], eax
jmp 0x55da6f
mov edx, dword [esi + 0x62]
mov eax, dword [esi + 0x2e]
mov ecx, dword [esi + 0x1693]
mov al, byte [edx + eax]
mov edx, dword [esi + 0x1697]
mov byte [esp + 0xc], al
mov word [edx + ecx*2], 0
mov ecx, dword [esi + 0x168b]
mov edx, dword [esi + 0x1693]
mov byte [ecx + edx], al
mov eax, dword [esp + 0xc]
mov ebp, dword [esi + 0x1693]
and eax, 0xff
inc ebp
xor edx, edx
lea eax, [esi + eax*4 + 0x8a]
mov dword [esi + 0x1693], ebp
inc word [eax]
mov ecx, dword [esi + 0x168f]
mov ebp, dword [esi + 0x1693]
dec ecx
cmp ebp, ecx
mov ecx, dword [esi + 0x6a]
sete dl
dec ecx
mov ebp, edx
mov dword [esi + 0x6a], ecx
inc dword [esi + 0x62]
test ebp, ebp
je 0x55d80a
mov ecx, dword [esi + 0x52]
test ecx, ecx
jl 0x55da87
mov edx, dword [esi + 0x2e]
mov eax, ecx
add eax, edx
jmp 0x55da89
xor eax, eax
mov edx, dword [esi + 0x62]
push 0
sub edx, ecx
push edx
push eax
push esi
call fcn.00561f70
mov ecx, dword [esi]
mov eax, dword [esi + 0x62]
push ecx
mov dword [esi + 0x52], eax
call fcn.0055d3c0
mov edx, dword [esi]
add esp, 0x14
mov eax, dword [edx + 0x10]
test eax, eax
je 0x55db23
jmp 0x55d80a
mov ecx, dword [esi + 0x52]
test ecx, ecx
jl 0x55dac5
mov eax, dword [esi + 0x2e]
add eax, ecx
jmp 0x55dac7
xor eax, eax
mov ebp, dword [esp + 0x18]
xor edx, edx
cmp ebp, 4
sete dl
push edx
mov edx, dword [esi + 0x62]
sub edx, ecx
push edx
push eax
push esi
call fcn.00561f70
mov ecx, dword [esi]
mov eax, dword [esi + 0x62]
push ecx
mov dword [esi + 0x52], eax
call fcn.0055d3c0
mov edx, dword [esi]
add esp, 0x14
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x55db0e
mov esi, ebp
xor eax, eax
cmp esi, 4
pop edi
setne al
dec eax
pop esi
and eax, 2
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
sub eax, 4
pop esi
neg eax
sbb eax, eax
pop ebp
and al, 0xfe
add eax, 3
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret