Function at 0x42df3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x46405c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0xb8], 1
test ebx, ebx
je 0x42dfd1
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x42dfd1
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
cmp eax, esi
jb 0x42dfd1
mov edx, dword [ebx + 0x18]
sub eax, esi
cmp eax, edx
jb 0x42dfd1
add esi, ecx
lea eax, [edi + 0x8c]
mov ecx, dword [eax]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], eax
test ecx, ecx
je 0x42dfd1
mov ecx, dword [ecx + 4]
cmp ecx, 7
jne 0x42dfe4
and dword [ebp - 0xac], 0
push esi
push edx
push esi
push dword [edi + 4]
lea ecx, [edi + 0x24]
push ecx
lea esi, [ebp - 0xbc]
call fcn.0042f448
add esp, 0x14
test eax, eax
jne 0x42dfd6
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebp - 0xbc]
je 0x42e18c
mov eax, 0xffff9400
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f7e0
leave
ret
cmp ecx, 6
je 0x42e277
cmp ecx, 8
je 0x42e277
cmp ecx, 0xa
je 0x42e277
cmp ecx, 2
jne 0x42dfd1
xor eax, eax
cmp dword [edi + 0xcc], ecx
jl 0x42e011
mov eax, dword [edi + 4]
mov ecx, dword [edi + 4]
add ecx, eax
cmp edx, ecx
jb 0x42e28b
mov ecx, dword [edi + 0xc]
lea eax, [ecx + eax + 1]
cmp edx, eax
jb 0x42e28b
mov ecx, dword [edi + 4]
mov eax, edx
xor edx, edx
div ecx
test edx, edx
jne 0x42e28b
cmp dword [edi + 0xcc], 2
jl 0x42e06a
push ecx
lea eax, [edi + 0x24]
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 4]
add esi, dword [edi + 4]
add dword [ebx + 0x14], eax
mov eax, dword [edi + 4]
add esp, 0xc
sub dword [ebx + 0x18], eax
mov dword [ebp - 0xb0], esi
push esi
push dword [ebx + 0x18]
lea eax, [edi + 0x24]
push esi
push dword [edi + 4]
lea esi, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0xac]
call fcn.0042f448
add esp, 0x14
test eax, eax
jne 0x42dfd6
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebp - 0xbc]
jne 0x42dfd1
cmp dword [edi + 0xcc], 2
jge 0x42e0c0
push dword [edi + 4]
lea eax, [edi + 0xb4]
push eax
lea eax, [edi + 0x24]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 0xb0]
movzx edx, byte [ecx + eax - 1]
mov eax, dword [edi + 0xc]
lea eax, [eax + edx + 1]
push eax
mov eax, ecx
call fcn.0042dd4d
mov esi, eax
and esi, 1
and edx, eax
add esp, 4
inc edx
cmp dword [edi + 0xcc], 0
mov dword [ebp - 0xb8], esi
jle 0x42dfd1
and dword [ebp - 0xac], 0
mov eax, ecx
sub eax, edx
mov dword [ebp - 0xc0], eax
mov eax, 0x100
mov dword [ebp - 0xb4], ecx
cmp ecx, eax
jbe 0x42e121
mov dword [ebp - 0xb4], eax
mov esi, ecx
sub esi, dword [ebp - 0xb4]
cmp esi, ecx
jae 0x42e163
lea eax, [edx - 1]
push eax
mov eax, dword [ebp - 0xb0]
mov al, byte [esi + eax]
movzx eax, al
call fcn.0044297c
pop ecx
push dword [ebp - 0xc0]
mov ecx, eax
mov eax, esi
call fcn.0042dd4d
and eax, ecx
add dword [ebp - 0xac], eax
add esp, 4
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x42e12d
mov eax, dword [ebp - 0xac]
push edx
call fcn.0044297c
and dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
pop ecx
call fcn.0042dd3b
and edx, eax
sub dword [ebx + 0x18], edx
mov dword [ebp - 0xac], edx
mov eax, dword [edi + 0xc]
sub dword [ebx + 0x18], eax
lea eax, [ebp - 0xb4]
push eax
mov ecx, ebx
lea esi, [ebp - 0x44]
call fcn.0042d95c
cmp dword [edi + 0xcc], 0
pop ecx
jle 0x42dfd1
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0xac]
add ecx, eax
lea esi, [ecx - 0x100]
mov edx, 0x100
cmp edx, ecx
mov edx, esi
sbb esi, esi
and esi, edx
lea edx, [ebp - 0x74]
push edx
push ecx
push esi
push eax
push dword [ebp - 0xb0]
lea eax, [ebp - 0x44]
push dword [ebp - 0xb4]
mov dword [ebp - 0xac], ecx
push eax
lea ecx, [edi + 0x40]
call fcn.0042dd9f
add esp, 0x1c
test eax, eax
jne 0x42dfd6
push dword [edi + 0xc]
lea eax, [ebp - 0xa4]
push dword [ebp - 0xac]
push dword [ebx + 0x18]
push dword [ebp - 0xb0]
push eax
mov eax, esi
call fcn.0042df13
xor esi, esi
add esp, 0x14
xor eax, eax
mov byte [ebp - 0xa5], 0
cmp dword [edi + 0xc], esi
jbe 0x42e258
mov cl, byte [ebp + eax - 0xa4]
movzx edx, byte [ebp + eax - 0x74]
movzx ecx, cl
xor edx, ecx
movzx ecx, byte [ebp - 0xa5]
or edx, ecx
inc eax
mov byte [ebp - 0xa5], dl
cmp eax, dword [edi + 0xc]
jb 0x42e232
mov al, byte [ebp - 0xa5]
test al, al
je 0x42e268
mov dword [ebp - 0xb8], esi
cmp dword [ebp - 0xb8], esi
je 0x42e28b
xor eax, eax
jmp 0x42dfd6
mov eax, edi
call fcn.0042d991
cmp eax, 1
jne 0x42e2b1
mov ecx, dword [ebx + 0x18]
cmp ecx, 8
jae 0x42e295
mov eax, 0xffff8e80
jmp 0x42dfd6
mov eax, dword [ebx + 0x14]
mov edx, esi
add esi, 8
add eax, 8
add ecx, 0xfffffff8
mov dword [ebp - 0xb0], esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
jmp 0x42e2b3
mov edx, ebx
mov eax, dword [ebx + 0x18]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jb 0x42e28b
sub eax, ecx
mov dword [ebx + 0x18], eax
push edx
push dword [edi + 8]
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x14]
call fcn.0042d99f
lea eax, [ebp - 0xb4]
add esp, 0xc
push eax
mov ecx, ebx
lea esi, [ebp - 0x44]
call fcn.0042d95c
mov eax, dword [edi + 0x10]
pop ecx
push eax
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebp - 0xb0]
add ecx, dword [ebx + 0xc]
push ecx
push dword [ebp - 0xb0]
mov ecx, dword [ebx + 0x18]
add ecx, eax
push ecx
push dword [ebp - 0xb0]
mov eax, esi
push dword [ebp - 0xb4]
push eax
push dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xac]
call fcn.0042f5ce
add esp, 0x2c
test eax, eax
je 0x42e343
cmp eax, 0xffff9d00
jne 0x42dfd6
jmp 0x42e28b
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebx + 0x18]
je 0x42e270
jmp 0x42dfd1