Function at 0x443770
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x46e02c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, edx
push edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x4439fd
test ebp, ebp
je 0x4439fd
cmp byte [ebp], 1
je 0x4439fd
test esi, esi
je 0x4439e9
test eax, eax
jle 0x4439e9
cdq
and edx, 0x7f
add eax, edx
push ebx
mov ebx, eax
movzx eax, byte [ecx]
sar ebx, 7
sub eax, 1
mov dword [esp + 0x14], ebx
je 0x4439a8
sub eax, 1
je 0x44393a
sub eax, 1
je 0x443803
pop ebx
pop edi
pop esi
mov eax, 0xfffffffb
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00449014
add esp, 0x30
ret
inc ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
test ebx, ebx
jle 0x4439d1
jmp 0x44381e
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
mov dword [edi + 8], edx
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov dword [edi + 0xc], eax
mov dword [esp + 0x28], ebx
jmp 0x443844
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp + 0x4c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [ebp + 0x140]
call fcn.00441420
mov al, byte [esp + 0x34]
mov cl, bl
and cl, 7
and al, 0x80
shr al, cl
sar ebx, 3
lea esi, [ebx + edi]
add esp, 8
xor byte [esi], al
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x13], cl
inc eax
mov ebp, 3
mov cl, byte [eax]
mov bl, byte [eax - 1]
add bl, bl
mov dl, cl
shr dl, 7
or dl, bl
mov byte [eax - 1], dl
mov dl, byte [eax + 1]
add cl, cl
mov bl, dl
shr bl, 7
or bl, cl
mov cl, byte [eax + 2]
mov byte [eax], bl
mov bl, cl
shr bl, 7
add dl, dl
or bl, dl
mov dl, byte [eax + 3]
mov byte [eax + 1], bl
add cl, cl
mov bl, dl
shr bl, 7
or bl, cl
movzx ecx, byte [eax + 4]
shr cl, 7
add dl, dl
or cl, dl
mov byte [eax + 2], bl
mov byte [eax + 3], cl
add eax, 5
sub ebp, 1
jne 0x443882
mov dl, byte [esi]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov cl, 7
sub cl, byte [esp + 0x13]
inc ebx
shr dl, cl
mov cl, byte [eax + 0xf]
add cl, cl
mov dword [esp + 0x28], ebx
and dl, 1
or dl, cl
cmp ebx, 0x80
mov byte [eax + 0xf], dl
jl 0x443840
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], 0x10
dec eax
add edi, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jg 0x443816
mov ebx, dword [esp + 0x14]
mov eax, ebx
pop ebx
pop edi
pop esi
shl eax, 7
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00449014
add esp, 0x30
ret
lea eax, [ecx + 1]
test ebx, ebx
jle 0x4439d1
mov edx, dword [esi]
xor edx, dword [eax]
mov ecx, dword [esi + 4]
xor ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 8]
xor edx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0xc]
xor ecx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x4c]
mov dword [esp + 0x38], ecx
push edi
push edx
lea ecx, [esp + 0x34]
lea eax, [ebp + 0x50]
call fcn.00441420
mov eax, edi
dec ebx
add esp, 8
add esi, 0x10
add edi, 0x10
test ebx, ebx
jg 0x443945
mov ebx, dword [esp + 0x14]
mov eax, ebx
pop ebx
pop edi
pop esi
shl eax, 7
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00449014
add esp, 0x30
ret
test ebx, ebx
jle 0x4439d1
lea esp, [esp]
mov eax, dword [ebp + 0x4c]
push edi
push eax
mov ecx, esi
lea eax, [ebp + 0x50]
call fcn.00441420
dec ebx
add esp, 8
add esi, 0x10
add edi, 0x10
test ebx, ebx
jg 0x4439b0
mov ebx, dword [esp + 0x14]
mov eax, ebx
pop ebx
pop edi
pop esi
shl eax, 7
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00449014
add esp, 0x30
ret
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00449014
add esp, 0x30
ret
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0xfffffffb
call fcn.00449014
add esp, 0x30
ret