Function at 0x4043f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi], 0
je 0x404407
push 0xfffffffffffffffb
jmp 0x40440f
cmp dword [esi + 8], 0
je 0x404415
push 0xfffffffffffffffa
pop eax
jmp 0x404688
mov edi, dword [ebp + 8]
test edi, edi
je 0x404686
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x404686
mov ebx, 0x80
cdq
mov ecx, ebx
idiv ecx
mov ecx, eax
mov eax, dword [esi + 4]
sub eax, 0
mov dword [ebp + 0xc], ecx
je 0x404661
dec eax
je 0x4045e2
dec eax
je 0x404458
or eax, 0xffffffff
jmp 0x404688
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
test ecx, ecx
mov dword [ebp - 4], eax
jle 0x40467e
mov dword [ebp + 8], ecx
xor edi, edi
mov eax, dword [ebp - 0x10]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004030a0
add esp, 0xc
mov eax, edi
cdq
push 8
mov dword [ebp + 0x14], edi
pop ecx
and dword [ebp + 0x14], 7
idiv ecx
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 0x20]
and dl, bl
add eax, ecx
mov cl, byte [ebp + 0x14]
shr dl, cl
mov cl, byte [ebp - 0xf]
shr cl, 7
xor byte [eax], dl
mov dl, byte [ebp - 0x10]
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xf]
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 0xe]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xd]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0xc]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0xb]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xb]
mov byte [ebp - 0xc], cl
mov cl, byte [ebp - 0xa]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xa]
mov byte [ebp - 0xb], cl
mov cl, byte [ebp - 9]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 9]
mov byte [ebp - 0xa], cl
mov cl, byte [ebp - 8]
mov al, byte [eax]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 8]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 7]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 7]
mov byte [ebp - 8], cl
mov cl, byte [ebp - 6]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 6]
mov byte [ebp - 7], cl
mov cl, byte [ebp - 5]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 5]
mov byte [ebp - 6], cl
mov cl, byte [ebp - 4]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 4]
mov byte [ebp - 5], cl
mov cl, byte [ebp - 3]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 3]
mov byte [ebp - 4], cl
mov cl, byte [ebp - 2]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 2]
mov byte [ebp - 3], cl
mov cl, byte [ebp - 1]
shr cl, 7
shl dl, 1
or cl, dl
mov byte [ebp - 2], cl
mov cl, 7
sub cl, byte [ebp + 0x14]
shr al, cl
mov cl, byte [ebp - 1]
shl cl, 1
and al, 1
or al, cl
inc edi
cmp edi, ebx
mov byte [ebp - 1], al
jl 0x40447d
dec dword [ebp + 8]
jne 0x40447b
jmp 0x40467e
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp + 0x10]
xor eax, dword [edi]
push esi
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004030a0
mov eax, dword [ebp + 0xc]
add esp, 0xc
add edi, 0x10
dec eax
test eax, eax
jle 0x40467e
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push esi
xor eax, dword [ebx]
add ebx, 0x10
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
xor eax, dword [ebx - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
xor eax, dword [ebx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
xor eax, dword [ebx - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004030a0
add esp, 0xc
add edi, 0x10
dec dword [ebp + 0x10]
jne 0x404624
jmp 0x40467e
test ecx, ecx
jle 0x40467e
mov ebx, ecx
push esi
push dword [ebp + 0x10]
push edi
call fcn.004030a0
add dword [ebp + 0x10], 0x10
add esp, 0xc
add edi, 0x10
dec ebx
jne 0x404667
mov eax, dword [ebp + 0xc]
shl eax, 7
jmp 0x404688
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret