Function at 0x402ef0
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 + 8]
mov dword [ebp - 0x24], ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
test ecx, ecx
je 0x40315b
test edi, edi
je 0x40315b
cmp byte [edi], 1
je 0x40315b
test ebx, ebx
je 0x403148
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x403148
movzx ecx, byte [ecx]
cdq
and edx, 0x7f
add edx, eax
sar edx, 7
mov dword [ebp - 0x20], edx
dec ecx
je 0x403103
dec ecx
je 0x403089
dec ecx
jne 0x40315b
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x18], edx
test edx, edx
jle 0x403132
lea edx, [ecx + 1]
lea eax, [edi + 0x140]
mov dword [ebp - 0x34], edx
movdqu xmm0, xmmword [ebx]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
movdqu xmmword [esi], xmm0
lea edx, [ebp - 0x14]
push edx
push ecx
push dword [edi + 0x4c]
push eax
call fcn.00401e40
mov al, byte [ebp - 0x14]
mov edi, ebx
mov ch, bl
sar edi, 3
and ch, 7
add edi, esi
and al, 0x80
mov cl, ch
shr al, cl
add esp, 0x10
mov esi, 3
xor byte [edi], al
mov eax, dword [ebp - 0x34]
mov bl, byte [eax]
lea eax, [eax + 5]
mov cl, 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
mov cl, byte [eax - 1]
shr cl, 7
or cl, dl
mov byte [eax - 2], cl
dec esi
jne 0x402fc3
mov dl, byte [edi]
mov cl, 7
mov ebx, dword [ebp - 0x30]
sub cl, ch
mov edi, dword [ebp - 0x1c]
inc ebx
mov esi, dword [ebp - 0x28]
shr dl, cl
mov ecx, dword [ebp - 0x24]
and dl, 1
inc ecx
mov dword [ebp - 0x30], ebx
mov al, byte [ecx + 0xf]
add al, al
or dl, al
lea eax, [edi + 0x140]
mov byte [ecx + 0xf], dl
cmp ebx, 0x80
jl 0x402f93
mov eax, dword [ebp - 0x18]
add esi, 0x10
mov ebx, dword [ebp - 0x2c]
dec eax
add ebx, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
lea eax, [edi + 0x140]
jg 0x402f86
mov edx, dword [ebp - 0x20]
pop edi
shl edx, 7
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424094
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x18], edx
test edx, edx
jle 0x403132
lea edx, [edi + 0x50]
lea edi, [ebx + 8]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edi - 8]
xor eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [edi - 4]
xor eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
xor eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
xor eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push esi
push eax
push dword [ebx + 0x4c]
push edx
call fcn.00401e40
mov eax, dword [ebp - 0x18]
lea edi, [edi + 0x10]
dec eax
lea edx, [ebx + 0x50]
mov ecx, esi
mov dword [ebp - 0x18], eax
add esp, 0x10
add esi, 0x10
test eax, eax
jg 0x4030a1
mov edx, dword [ebp - 0x20]
pop edi
shl edx, 7
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424094
mov esp, ebp
pop ebp
ret
mov edi, edx
test edx, edx
jle 0x403132
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x50]
nop
push esi
push ebx
push dword [eax + 0x4c]
push ecx
call fcn.00401e40
mov eax, dword [ebp - 0x1c]
dec edi
add esp, 0x10
add ebx, 0x10
add esi, 0x10
lea ecx, [eax + 0x50]
test edi, edi
jg 0x403110
mov edx, dword [ebp - 0x20]
pop edi
shl edx, 7
pop esi
mov eax, edx
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