Function at 0x41d8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov ebp, edx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], ecx
mov ecx, eax
mov eax, dword [0x47d748]
mov ebx, edx
mov dword [esp + 0x38], ecx
mov edx, dword [0x47d74c]
mov dword [esp + 0x3c], ebx
mov ebx, ecx
sub ebx, eax
cmp word [0x48094e], 1
jle 0x41db80
mov ecx, dword [esp + 0x68]
test ecx, ecx
js 0x41db25
mov esi, dword [esp + 0x68]
mov ecx, dword [ebp]
lea esi, [esi + esi*4]
shl esi, 3
mov ebp, dword [ecx + esi + 8]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.0043ece0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0043ece0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 4], str.match_at__s_last_match_s_j_d_len_ld_n_ld_n
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp], 2
call fcn.00420340
mov eax, dword [0x47d748]
mov edx, dword [0x47d74c]
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp]
mov ecx, dword [ecx + esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
call fcn.0042fe40
mov eax, ebx
cdq
mov eax, dword [ebp]
add dword [0x47d768], ebx
adc dword [0x47d76c], edx
mov ecx, dword [eax + esi + 8]
mov eax, ecx
cdq
add dword [0x47f828], ecx
adc dword [0x47f82c], edx
add ebx, ecx
test ebx, ebx
jle 0x41dab4
lea eax, [ebx - 1]
xor edx, edx
shr eax, 0xf
add eax, 1
adc edx, 0
xor esi, esi
xor edi, edi
shld edx, eax, 0xf
shl eax, 0xf
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp ebx, 0x8000
mov ebp, 0x8000
mov eax, esi
cmovle ebp, ebx
add eax, dword [0x47d748]
mov edx, edi
adc edx, dword [0x47d74c]
mov dword [esp + 0xc], ebp
sub ebx, 0x8000
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.00433da0
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.0041d6f0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esi, 0x8000
adc edi, 0
xor edx, edi
xor eax, esi
or edx, eax
jne 0x41da53
mov ebx, dword [esp + 0x68]
test ebx, ebx
js 0x41db65
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x34]
lea eax, [eax + eax*4]
shl eax, 3
add eax, dword [edi]
mov eax, dword [eax + 8]
cdq
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
mov dword [0x47d748], eax
mov dword [0x47d74c], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41db1d
cmp word [0x480922], 0
jle 0x41db1d
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov edx, dword [0x47d74c]
mov eax, dword [0x47d748]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004378d0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
call fcn.0042fe40
mov eax, ebx
cdq
add dword [0x47d768], ebx
adc dword [0x47d76c], edx
jmp 0x41da2a
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [0x47d748], eax
mov dword [0x47d74c], edx
jmp 0x41dae7
mov esi, dword [esp + 0x68]
test esi, esi
js 0x41db25
mov ecx, dword [esp + 0x68]
lea esi, [ecx + ecx*4]
shl esi, 3
jmp 0x41d9d0