Function at 0x4382d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x47bdb8]
push ebp
mov ebp, ecx
mov dword [esp + 0x24], eax
cmp dword [ebp], 0
je 0x4382fa
mov eax, 0xfffffffb
pop ebp
mov ecx, dword [esp + 0x20]
call fcn.0041723c
add esp, 0x24
ret 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x438316
mov eax, 0xfffffffa
pop ebp
mov ecx, dword [esp + 0x20]
call fcn.0041723c
add esp, 0x24
ret 0xc
push esi
mov esi, dword [esp + 0x30]
test esi, esi
je 0x438644
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x438644
cdq
and edx, 0x7f
add eax, edx
push ebx
mov ebx, eax
mov eax, dword [ebp + 4]
sar ebx, 7
sub eax, 0
push edi
mov dword [esp + 0x3c], ebx
je 0x438606
dec eax
je 0x438556
dec eax
je 0x43836c
pop edi
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x20]
call fcn.0041723c
add esp, 0x24
ret 0xc
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jle 0x43862c
mov dword [esp + 0x38], ebx
xor edi, edi
jmp 0x4383a0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
push edx
mov eax, edx
mov dword [esp + 0x30], ecx
push eax
mov ecx, ebp
call fcn.004379f0
mov eax, dword [esp + 0x40]
mov bl, byte [esp + 0x10]
mov ecx, edi
shr ecx, 3
lea esi, [ecx + eax]
mov al, byte [esp + 0x20]
shl bl, 1
mov edx, edi
and edx, 7
and al, 0x80
mov cl, dl
shr al, cl
mov cl, byte [esi]
xor cl, al
mov byte [esi], cl
mov al, cl
mov cl, byte [esp + 0x11]
shr cl, 7
or cl, bl
mov bl, byte [esp + 0x11]
mov byte [esp + 0x10], cl
mov cl, byte [esp + 0x12]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x12]
mov byte [esp + 0x11], cl
mov cl, byte [esp + 0x13]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x13]
mov byte [esp + 0x12], cl
mov cl, byte [esp + 0x14]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x14]
mov byte [esp + 0x13], cl
mov cl, byte [esp + 0x15]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x15]
mov byte [esp + 0x14], cl
mov cl, byte [esp + 0x16]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x16]
mov byte [esp + 0x15], cl
mov cl, byte [esp + 0x17]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x17]
mov byte [esp + 0x16], cl
mov cl, byte [esp + 0x18]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x18]
mov byte [esp + 0x17], cl
mov cl, byte [esp + 0x19]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x19]
mov byte [esp + 0x18], cl
mov cl, byte [esp + 0x1a]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x1a]
mov byte [esp + 0x19], cl
mov cl, byte [esp + 0x1b]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x1b]
mov byte [esp + 0x1a], cl
mov cl, byte [esp + 0x1c]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x1c]
mov byte [esp + 0x1b], cl
mov cl, byte [esp + 0x1d]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x1d]
mov byte [esp + 0x1c], cl
mov cl, byte [esp + 0x1e]
shr cl, 7
shl bl, 1
or cl, bl
mov bl, byte [esp + 0x1e]
mov byte [esp + 0x1d], cl
mov cl, byte [esp + 0x1f]
shr cl, 7
shl bl, 1
or cl, bl
mov byte [esp + 0x1e], cl
mov cl, 7
sub cl, dl
mov dl, byte [esp + 0x1f]
shr al, cl
shl dl, 1
and al, 1
or al, dl
inc edi
cmp edi, 0x80
mov byte [esp + 0x1f], al
jl 0x4383a0
dec dword [esp + 0x38]
jne 0x438394
mov ebx, dword [esp + 0x3c]
pop edi
mov eax, ebx
pop ebx
pop esi
shl eax, 7
pop ebp
mov ecx, dword [esp + 0x20]
call fcn.0041723c
add esp, 0x24
ret 0xc
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov edx, dword [esi + 8]
xor eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], eax
xor ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
xor edx, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x18]
push edi
lea ecx, [esp + 0x24]
xor eax, edx
push ecx
mov ecx, ebp
mov dword [esp + 0x34], eax
call fcn.004379f0
lea eax, [ebx - 1]
add esi, 0x10
test eax, eax
jle 0x43862c
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [edi + 4]
xor edx, eax
mov eax, dword [esi + 4]
xor eax, ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], edx
xor ecx, dword [edi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
xor edx, dword [edi + 0xc]
add edi, 0x10
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], ecx
push eax
mov ecx, ebp
mov dword [esp + 0x34], edx
call fcn.004379f0
mov eax, dword [esp + 0x40]
add esi, 0x10
dec eax
mov dword [esp + 0x40], eax
jne 0x4385a6
pop edi
mov eax, ebx
pop ebx
pop esi
shl eax, 7
pop ebp
mov ecx, dword [esp + 0x20]
call fcn.0041723c
add esp, 0x24
ret 0xc
test ebx, ebx
jle 0x43862c
mov edi, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
push edi
push esi
mov ecx, ebp
call fcn.004379f0
mov eax, dword [esp + 0x38]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x38], eax
jne 0x438612
pop edi
mov eax, ebx
pop ebx
pop esi
shl eax, 7
pop ebp
mov ecx, dword [esp + 0x20]
call fcn.0041723c
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x28]
pop esi
xor eax, eax
pop ebp
call fcn.0041723c
add esp, 0x24
ret 0xc