Function at 0x413c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
shr edi, 1
mov esi, edx
cmp edi, 0x40
jle 0x413c43
mov edi, 0x40
push edi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004217f0
add esp, 0xc
xor ecx, ecx
xor eax, eax
test edi, edi
jle 0x413caa
jmp 0x413c63
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx + 0x43fd08]
xor byte [ebp + eax - 0x44], dl
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, 8
jge 0x413caa
mov dl, byte [ebp + eax - 0x44]
mov ecx, eax
movzx ebx, dl
and ecx, 7
shl ebx, cl
test ebx, ebx
jne 0x413c9f
mov cl, byte [ebp + 8]
mov bl, al
and bl, 7
sub cl, bl
add cl, 8
shr dl, cl
test dl, dl
jne 0x413c9f
xor cl, cl
jmp 0x413ca1
mov cl, 1
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x413c60
mov eax, dword [ebp + 0xc]
mov edi, eax
and edi, 0x80000001
jns 0x413cbc
dec edi
or edi, 0xfffffffe
inc edi
mov edx, eax
sar edx, 2
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
test edi, edi
je 0x413d0a
xor edi, edi
xor eax, eax
mov ecx, 7
test edx, edx
je 0x413cff
jmp 0x413ce0
mov bl, byte [ecx + 0x43fd08]
xor byte [esi + eax], bl
inc edi
cmp edi, dword [ecx*4 + 0x43fd10]
jle 0x413cfa
dec ecx
test ecx, ecx
jg 0x413cff
xor edi, edi
inc eax
cmp eax, edx
jb 0x413ce0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x41401f
cmp edx, 0x10
jb 0x413e7f
cmp edx, 0x9e
ja 0x413e8b
xor eax, eax
jmp 0x413d30
cmp dword [ebp - 0x4c], 0
mov cl, byte [eax + 0x43fd08]
je 0x413dd8
mov ebx, dword [eax*8 + 0x43fd34]
mov bl, byte [esi + ebx]
mov edi, dword [eax*8 + 0x43fd30]
xor cl, byte [edi + esi]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd34]
mov byte [esi + edi], cl
mov ebx, dword [eax*8 + 0x43fd3c]
mov bl, byte [esi + ebx]
mov edi, dword [eax*8 + 0x43fd38]
mov cl, byte [eax + 0x43fd09]
xor cl, byte [edi + esi]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd3c]
mov byte [esi + edi], cl
mov ebx, dword [eax*8 + 0x43fd44]
mov edi, dword [eax*8 + 0x43fd40]
mov cl, byte [eax + 0x43fd0a]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd44]
mov byte [esi + edi], cl
mov edi, dword [eax*8 + 0x43fd48]
mov ebx, dword [eax*8 + 0x43fd4c]
mov cl, byte [eax + 0x43fd0b]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd4c]
jmp 0x413e6b
mov ebx, dword [eax*8 + 0x43fd30]
mov bl, byte [esi + ebx]
mov edi, dword [eax*8 + 0x43fd34]
xor cl, byte [edi + esi]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd30]
mov byte [esi + edi], cl
mov edi, dword [eax*8 + 0x43fd3c]
mov cl, byte [edi + esi]
mov ebx, dword [eax*8 + 0x43fd38]
mov bl, byte [esi + ebx]
xor cl, byte [eax + 0x43fd09]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd38]
mov byte [esi + edi], cl
mov ebx, dword [eax*8 + 0x43fd40]
mov edi, dword [eax*8 + 0x43fd44]
mov cl, byte [eax + 0x43fd0a]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd40]
mov byte [esi + edi], cl
mov edi, dword [eax*8 + 0x43fd4c]
mov ebx, dword [eax*8 + 0x43fd48]
mov cl, byte [eax + 0x43fd0b]
xor cl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax*8 + 0x43fd48]
add eax, 4
mov byte [esi + edi], cl
cmp eax, 8
jl 0x413d30
jmp 0x414015
cmp edx, 0x9e
jbe 0x414008
mov ecx, 0xf
mov eax, 0x43fd70
jmp 0x413e9a
mov edi, dword [ebp - 0x4c]
lea edx, [ecx + 1]
test edi, edi
je 0x413f4e
and edx, 0x80000007
mov edi, dword [eax]
jns 0x413eb4
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 4]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 4]
mov byte [esi + edi], dl
mov edi, dword [eax + 8]
mov edx, ecx
and edx, 0x80000007
jns 0x413ede
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 0xc]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0xc]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x10]
lea edx, [ecx - 1]
and edx, 0x80000007
jns 0x413f09
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 0x14]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x14]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x18]
lea edx, [ecx - 2]
and edx, 0x80000007
jns 0x413f34
dec edx
or edx, 0xfffffff8
inc edx
mov ebx, dword [eax + 0x1c]
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x1c]
jmp 0x413ff1
and edx, 0x80000007
mov edi, dword [eax + 4]
jns 0x413f5e
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax]
mov byte [esi + edi], dl
mov edi, dword [eax + 0xc]
mov edx, ecx
and edx, 0x80000007
jns 0x413f86
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 8]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 8]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x14]
lea edx, [ecx - 1]
and edx, 0x80000007
jns 0x413fb1
dec edx
or edx, 0xfffffff8
inc edx
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov ebx, dword [eax + 0x10]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x10]
mov byte [esi + edi], dl
mov edi, dword [eax + 0x1c]
lea edx, [ecx - 2]
and edx, 0x80000007
jns 0x413fdc
dec edx
or edx, 0xfffffff8
inc edx
mov ebx, dword [eax + 0x18]
mov dl, byte [edx + 0x43fd08]
xor dl, byte [edi + esi]
mov bl, byte [esi + ebx]
mov byte [edi + esi], bl
mov edi, dword [eax + 0x18]
sub ecx, 4
add eax, 0x20
mov byte [esi + edi], dl
mov edx, dword [ebp - 0x48]
cmp ecx, 0xffffffff
jg 0x413e97
jmp 0x414015
mov al, byte [0x43fd0d]
add al, byte [0x43fd0a]
xor byte [esi], al
cmp dword [ebp - 0x4c], 0
je 0x413ccb
xor ebx, ebx
mov cl, byte [ebp + ebx - 0x44]
xor cl, 0x32
mov byte [ebx + 0x43f748], cl
inc ebx
cmp ebx, 0x10
jl 0x414021
mov esi, dword [0x43fa70]
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
mov eax, esi
sub eax, edx
add ebx, eax
xor eax, eax
mov dword [0x441528], 0x10
test ebx, ebx
jle 0x414077
cmp eax, 4
jge 0x414072
mov cl, al
add cl, cl
add cl, bl
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, ebx
jl 0x414063
movzx ecx, byte [0x43f768]
add ecx, dword [0x43fa6c]
mov eax, 0x66666667
add ecx, esi
add ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, al
add dl, dl
add dl, dl
add al, dl
add al, al
sub cl, al
add cl, byte [ebp - 0x42]
pop edi
mov byte [0x43f74b], cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041e965
mov esp, ebp
pop ebp
ret