Function at 0x42d310
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 4
push 0x20
push edx
lea edx, [esp + 0x14]
push edx
call fcn.00494d68
add esp, 0xc
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x42d379
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x42d344
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x42d371
cmp ecx, 4
jl 0x42d342
cmp ecx, 4
jne 0x42d379
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x42d384
cmp esi, 0xa
jle 0x42d366
cmp esi, 0xa
jg 0x42d524
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x4b3c38]
lea edx, [esp + 0xc]
xor byte [edx], al
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov al, byte [edx + 0x4b3c38]
lea edx, [esp + 0xc]
xor byte [edx + 1], al
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x4b3c38]
lea edx, [esp + 0xc]
xor byte [edx + 2], al
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov al, byte [edx + 0x4b3c38]
lea edx, [esp + 0xc]
xor byte [edx + 3], al
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x4b3e38]
lea eax, [esp + 0xc]
xor byte [eax], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x42d434
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x42d4d2
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x42d414
inc edx
cmp edx, dword [esp + 8]
jl 0x42d412
jmp 0x42d4d2
mov edx, 1
jmp 0x42d452
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x42d43d
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x42d45d
adc eax, 0
cmp edx, eax
jl 0x42d43b
mov eax, dword [esp + 8]
sar eax, 1
jns 0x42d46c
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x4b3c38]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x4b3c38]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x4b3c38]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x4b3c38]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x42d4d2
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x42d4b7
inc edx
cmp edx, dword [esp + 8]
jl 0x42d4b5
xor edx, edx
jmp 0x42d510
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x42d4da
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x42d508
cmp ecx, 4
jl 0x42d4d8
cmp ecx, 4
jne 0x42d510
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x42d51b
cmp esi, 0xa
jle 0x42d4fd
cmp esi, 0xa
jle 0x42d38d
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret