Function at 0x402c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48a8f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x402ed8
test esi, esi
je 0x402ed8
mov al, byte [ebx]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x402c7a
cmp byte [esi], 0
je 0x402ed8
test edi, edi
je 0x402ec5
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x402ec5
cdq
and edx, 0x7f
add eax, edx
movzx edx, byte [ebp - 0x15]
sar eax, 7
mov dword [ebp - 0x24], eax
dec edx
je 0x402e6a
dec edx
je 0x402de7
dec edx
jne 0x402ed8
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 1]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], edx
test edx, edx
jle 0x402eaf
lea edx, [esi + 0x140]
lea ebx, [eax + 1]
nop
movdqu xmm0, xmmword [edi]
mov dword [ebp - 0x2c], 0
movdqu xmmword [ecx], xmm0
nop
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 0x4c]
push edx
call fcn.00401e40
add esp, 0x10
mov eax, ebx
mov esi, 3
jmp 0x402d00
mov bl, byte [eax]
lea eax, [eax + 5]
movzx ecx, byte [eax - 6]
mov dl, bl
add cl, cl
shr dl, 7
or dl, cl
add bl, bl
mov byte [eax - 6], dl
mov dl, byte [eax - 4]
mov cl, dl
add dl, dl
shr cl, 7
or cl, bl
mov bl, byte [eax - 3]
mov byte [eax - 5], cl
mov cl, bl
shr cl, 7
add bl, bl
or cl, dl
mov dl, byte [eax - 2]
mov byte [eax - 4], cl
mov cl, dl
shr cl, 7
add dl, dl
or cl, bl
mov byte [eax - 3], cl
movzx ecx, byte [eax - 1]
shr cl, 7
or cl, dl
mov byte [eax - 2], cl
dec esi
jne 0x402d00
mov eax, dword [ebp - 0x2c]
mov cl, 7
mov esi, eax
mov bl, al
sar esi, 3
and bl, 7
sub cl, bl
mov dl, byte [edi + esi]
shr dl, cl
mov ecx, dword [ebp - 0x30]
and dl, 1
movzx eax, byte [ecx + 0x10]
add al, al
or dl, al
movzx eax, byte [ebp - 0x14]
mov byte [ecx + 0x10], dl
and al, 0x80
mov cl, bl
mov ebx, dword [ebp - 0x2c]
shr al, cl
inc ebx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
xor byte [esi + ecx], al
cmp ebx, 0x80
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
lea ebx, [eax + 1]
lea edx, [esi + 0x140]
jl 0x402ce0
mov eax, dword [ebp - 0x34]
lea edx, [esi + 0x140]
dec eax
add ecx, 0x10
add edi, 0x10
mov dword [ebp - 0x34], eax
test eax, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x28]
lea ebx, [eax + 1]
jg 0x402cd0
mov eax, dword [ebp - 0x24]
pop edi
pop esi
shl eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424094
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x402eb1
lea ecx, [esi + 0x50]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
jmp 0x402e00
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push edi
push dword [eax + 0x4c]
push ecx
call fcn.004018b0
mov eax, dword [ebx + 1]
lea esi, [esi + 0x10]
xor dword [ebp - 0x14], eax
add esp, 0x10
mov eax, dword [ebx + 5]
xor dword [ebp - 0x10], eax
movdqu xmm0, xmmword [edi]
mov eax, dword [ebx + 9]
add edi, 0x10
xor dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xd]
xor dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x28], eax
movdqu xmmword [ebx + 1], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [esi - 0x10], xmm0
test eax, eax
jg 0x402e00
mov eax, dword [ebp - 0x24]
pop edi
pop esi
shl eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424094
mov esp, ebp
pop ebp
ret
mov esi, eax
test eax, eax
jle 0x402eb1
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + 0x50]
push ecx
push edi
push dword [eax + 0x4c]
push ebx
call fcn.004018b0
mov ecx, dword [ebp - 0x20]
dec esi
mov eax, dword [ebp - 0x1c]
add ecx, 0x10
add esp, 0x10
mov dword [ebp - 0x20], ecx
add edi, 0x10
test esi, esi
jg 0x402e76
mov eax, dword [ebp - 0x24]
pop edi
pop esi
shl eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424094
mov esp, ebp
pop ebp
ret
mov eax, edx
pop edi
pop esi
shl eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424094
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424094
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffb
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424094
mov esp, ebp
pop ebp
ret