Function at 0x933c5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00970bfd
mov eax, dword [0x3998e9f8]
or dword [ebp - 0x1008], 0xffffffff
push edi
xor edi, edi
test byte [ebp + 8], 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], edi
je 0x933cb4
xor ecx, ecx
cmp dword [ebp + 0x14], edi
mov dword [ebp - 0x1008], edi
jbe 0x933cf1
mov eax, dword [ebp + 0x10]
movsx eax, byte [ecx + eax]
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x1008], eax
inc ecx
cmp ecx, dword [ebp + 0x14]
jb 0x933c94
cmp dword [ebp - 0x1008], edi
je 0x933cf1
push ebx
push esi
mov esi, dword [ebp + 0x14]
cmp esi, dword [ebp + 0x18]
ja 0x9c5ac6
mov ebx, dword [ebp + 0x10]
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x9c5bd0
mov esi, dword [ebp + 0x14]
cmp esi, dword [ebp + 0x18]
ja 0x9c5b5b
mov al, byte [ebp - 0x100c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0097b675
leave
ret 0x14
xor al, al
jmp 0x933ce4
test byte [ebp + 8], 0x10
jne 0x9c5adf
test byte [ebp + 8], 0x80
je 0x933cc2
cmp dword [ebp + 0xc], edi
jne 0x9c5bcd
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
jbe 0x9c5afe
cmp ecx, esi
jae 0x9c5b30
mov eax, dword [ebp + 0x10]
movsx eax, byte [ecx + eax]
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc ecx
cmp ecx, dword [ebp + 0x18]
jb 0x9c5ae6
cmp ecx, esi
jae 0x9c5b30
mov ebx, dword [ebp + 0x10]
mov esi, ecx
sub esi, dword [ebp + 0x18]
add esi, ebx
cmp edi, dword [ebp - 0x1008]
jae 0x933cc5
mov al, byte [ebx + ecx]
sub al, byte [esi]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc ecx
inc esi
cmp ecx, dword [ebp + 0x14]
jb 0x9c5b0c
jmp 0x9c5b33
mov ebx, dword [ebp + 0x10]
cmp edi, dword [ebp - 0x1008]
jae 0x933cc5
xor eax, eax
inc eax
test edi, edi
mov dword [ebp - 0x1008], edi
mov dword [ebp - 0x100c], eax
jne 0x933cc5
jmp 0x933ce2
test byte [ebp + 8], 0x40
je 0x933cdc
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
jbe 0x9c5b81
cmp ecx, esi
jae 0x9c5bb2
movsx eax, byte [ecx + ebx]
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc ecx
cmp ecx, dword [ebp + 0x18]
jb 0x9c5b6c
cmp ecx, esi
jae 0x9c5bb2
mov esi, ecx
sub esi, dword [ebp + 0x18]
add esi, ebx
cmp edi, dword [ebp - 0x1008]
jae 0x933cdc
mov al, byte [esi]
mov dl, byte [ecx + ebx]
shr al, 1
sub dl, al
movsx eax, dl
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc ecx
inc esi
cmp ecx, dword [ebp + 0x14]
jb 0x9c5b8c
cmp edi, dword [ebp - 0x1008]
jae 0x933cdc
mov dword [ebp - 0x100c], 3
jmp 0x933cdc
mov ebx, dword [ebp + 0x10]
test byte [ebp + 8], 0x20
jne 0x9c5be4
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 0x18]
ja 0x9c5c37
test byte [ebp + 8], 0x80
je 0x9c5c37
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x14], 0
jbe 0x9c5c18
mov esi, dword [ebp + 0xc]
mov ecx, ebx
sub esi, ebx
cmp edi, dword [ebp - 0x1008]
jae 0x9c5c37
mov al, byte [ecx]
sub al, byte [esi + ecx]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
inc ecx
cmp eax, dword [ebp + 0x14]
jb 0x9c5bf5
cmp edi, dword [ebp - 0x1008]
jae 0x9c5c37
test edi, edi
push 2
pop eax
mov dword [ebp - 0x1008], edi
mov dword [ebp - 0x100c], eax
je 0x933ce2
test byte [ebp + 8], 0x40
je 0x9c5ce5
xor esi, esi
cmp dword [ebp + 0x18], esi
mov dword [ebp + 0x10], esi
jbe 0x9c5c72
mov edi, dword [ebp + 0xc]
sub edi, ebx
cmp esi, dword [ebp + 0x14]
jae 0x9c5cbf
lea eax, [esi + ebx]
mov cl, byte [edi + eax]
mov al, byte [eax]
shr cl, 1
sub al, cl
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x10], eax
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x9c5c50
cmp esi, dword [ebp + 0x14]
jae 0x9c5cbf
mov eax, dword [ebp + 0xc]
mov ecx, esi
sub ecx, dword [ebp + 0x18]
lea edi, [esi + ebx]
add ecx, ebx
sub eax, ebx
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1008]
jae 0x9c5ce5
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x1010]
movzx eax, byte [eax + edi]
add eax, edx
mov dl, byte [edi]
sar eax, 1
sub dl, al
movsx eax, dl
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x10], eax
inc esi
inc ecx
inc edi
cmp esi, dword [ebp + 0x14]
jb 0x9c5c8c
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1008]
jae 0x9c5ce5
test eax, eax
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x100c], 3
jne 0x9c5ce5
mov al, 3
jmp 0x933ce2
mov ecx, dword [ebp + 0x18]
cmp dword [ebp + 0x14], ecx
jbe 0x933cdc
test byte [ebp + 8], 0x80
je 0x933cdc
mov eax, dword [ebp + 0x14]
shl eax, 4
cmp dword [ebp - 0x1008], eax
jbe 0x933cdc
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [ebp - 0x1004]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
call fcn.00a79ae4
sub dword [ebp + 0x14], esi
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], esi
add ebx, esi
shl eax, 2
xor ecx, ecx
test esi, esi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], eax
jbe 0x9c5d64
movsx eax, byte [ebp + ecx - 0x1004]
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 8], eax
inc ecx
cmp ecx, esi
jb 0x9c5d4f
cmp dword [ebp + 0x14], 0
jbe 0x9c5e09
mov dword [ebp - 0x1010], 0x1000
sub dword [ebp - 0x1010], esi
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1010]
cmp ebx, eax
jbe 0x9c5d8d
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
lea ecx, [eax + ebx]
mov edx, ecx
shr ecx, 2
sub esi, eax
lea edi, [ebp - 0x1004]
rep movsd dword es:[edi], dword [esi]
push eax
push ebx
push dword [ebp + 0xc]
mov ecx, edx
lea eax, [ebp + eax - 0x1004]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00a79b5f
xor ecx, ecx
test ebx, ebx
jbe 0x9c5dea
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x1008]
jae 0x9c5dea
mov eax, dword [ebp + 0x18]
lea eax, [ebp + eax - 0x1004]
movsx eax, byte [ecx + eax]
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 8], eax
inc ecx
cmp ecx, ebx
jb 0x9c5dc4
sub dword [ebp + 0x14], ebx
je 0x9c5e09
mov eax, dword [ebp - 0x1008]
cmp dword [ebp + 8], eax
jae 0x933cdc
add dword [ebp + 0x10], ebx
add dword [ebp + 0xc], ebx
jmp 0x9c5d7e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x1008]
jae 0x933cdc
mov dword [ebp - 0x100c], 4
jmp 0x933cdc