Function at 0x42e680
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebp, dword [esp + 0xd4]
mov ebx, dword [esp + 0xd8]
test ebp, ebp
je 0x42e9ae
test ebx, ebx
je 0x42e9ae
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x42e9ae
mov edi, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov edx, eax
cmp edi, eax
jb 0x42e9ae
mov ax, word [ebx + 0x18]
mov word [esp + 0x3c], ax
mov esi, eax
rol si, 8
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edi
sub edi, edx
cmp edi, eax
jb 0x42e9ae
mov edi, edx
add ecx, edx
mov dword [esp + 0x4c], ecx
add edi, eax
mov eax, edi
mov edi, dword [esp + 0x44]
sub edi, eax
mov dword [esp + 0x40], edi
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x42e9a0
mov eax, dword [eax + 4]
mov dword [esp + 0x54], eax
cmp dword [esp + 0x48], 0x4000
ja 0x42ebef
cmp eax, 7
je 0x42e890
cmp eax, 2
je 0x42e890
mov eax, dword [esp + 0x54]
cmp eax, 6
je 0x42e744
and eax, 0xfffffffd
cmp eax, 8
jne 0x42e9ae
mov eax, dword [ebp + 4]
mov dword [esp + 0x5c], eax
mov edx, dword [ebp + 8]
mov dword [esp + 0x54], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x58], eax
cmp dword [esp + 0x40], eax
jb 0x42e988
lea eax, [esp + 0x60]
mov esi, eax
mov dword [esp + 0x50], eax
mov ecx, 3
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea esi, [ebp + 0x14]
cmp edx, 4
jae 0x42e9c0
test edx, edx
je 0x42e798
mov al, byte [ebp + 0x14]
mov byte [esp + 0x60], al
test dl, 2
jne 0x42ec51
xor eax, eax
mov edx, dword [esp + 0x3c]
nop
lea esi, [esp + 0x64]
add esi, eax
mov cl, byte [esi]
xor cl, byte [ebx + eax]
mov byte [esi], cl
inc eax
cmp eax, 8
jne 0x42e7a0
mov word [esp + 0x3c], dx
lea ecx, [esp + 0x82]
mov eax, dword [ebx]
mov dword [esp + 0x82], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x86], eax
mov al, byte [ebx + 8]
mov byte [esp + 0x8a], al
mov ax, word [ebx + 9]
mov word [esp + 0x8b], ax
rol dx, 8
mov word [esp + 0x8d], dx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x4c]
mov edx, esi
sub edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x44]
sub eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0xd
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], edi
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
add ebp, 0x4c
mov dword [esp], ebp
call fcn.004400d0
test eax, eax
jne 0x42e919
mov eax, dword [esp + 0x54]
cmp edi, eax
je 0x42e87a
cmp dword [ebx + 0x14], 7
jbe 0x42e988
mov eax, dword [ebx]
mov dword [esi - 8], eax
mov eax, dword [ebx + 4]
mov dword [esi - 4], eax
sub dword [ebx + 0x14], 8
add dword [ebx + 0x18], 8
xor eax, eax
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x40]
cmp eax, dword [ebp + 0xc]
jb 0x42e988
mov edx, dword [ebp + 0xcc]
test edx, edx
jle 0x42e9ae
lea eax, [esp + 0x82]
mov edx, dword [ebx]
mov dword [esp + 0x82], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x86], edx
mov dl, byte [ebx + 8]
mov byte [esp + 0x8a], dl
mov dx, word [ebx + 9]
mov word [esp + 0x8b], dx
mov word [esp + 0x8d], si
lea esi, [ebp + 0x34]
mov dword [esp + 8], 0xd
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004486c0
test eax, eax
mov dword [esp + 0x3c], eax
je 0x42e930
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
lea edx, [esp + 0x60]
mov dword [esp], edx
call fcn.0042b3a0
mov eax, dword [esp + 0x3c]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004486c0
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x42e902
lea edi, [esp + 0x60]
mov dword [esp + 0x50], edi
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00448760
test eax, eax
mov dword [esp + 0x3c], eax
je 0x42e9e0
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.0042b3a0
mov eax, dword [esp + 0x3c]
jmp 0x42e919
test esi, esi
jne 0x42ebe0
mov eax, 0xffff9600
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x48], 0x4000
ja 0x42ebef
mov eax, 0xffff9400
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + ecx - 4]
mov dword [esp + ecx + 0x5c], eax
dec ecx
shr ecx, 2
mov edi, dword [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
jmp 0x42e798
mov dword [esp], esi
call fcn.00448830
test eax, eax
mov dword [esp + 0x3c], eax
je 0x42ea10
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0042b3a0
mov eax, dword [esp + 0x3c]
jmp 0x42e919
mov ecx, dword [esp + 0x4c]
add ecx, dword [ebx + 0x18]
mov eax, dword [ebp + 0xc]
cmp eax, 4
jae 0x42ebb0
test eax, eax
je 0x42ea38
mov dl, byte [esp + 0x60]
mov byte [ecx], dl
test al, 2
jne 0x42ec3f
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0042b3a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
add ecx, eax
mov dword [ebx + 0x18], ecx
cmp dword [esp + 0x54], 2
jne 0x42e9ae
mov esi, dword [esp + 0x40]
sub esi, eax
mov edi, dword [ebp + 4]
lea eax, [ecx + 1]
xor edx, edx
div edi
mov eax, edi
sub eax, edx
cmp edi, eax
je 0x42e980
lea edx, [eax + 1]
cmp esi, edx
jb 0x42e988
mov edx, dword [esp + 0x4c]
mov byte [edx + ecx], al
test eax, eax
je 0x42ebe8
mov edx, 1
mov edi, ebx
mov bl, al
mov esi, dword [esp + 0x4c]
lea esi, [esi]
lea esi, [esi]
nop
lea ecx, [esi + edx]
add ecx, dword [edi + 0x18]
mov byte [ecx], bl
inc edx
cmp eax, edx
jae 0x42eab0
mov ebx, edi
mov edx, dword [ebx + 0x18]
lea eax, [eax + edx + 1]
mov dword [ebx + 0x18], eax
cmp dword [ebp + 0xcc], 1
jle 0x42ec00
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x42e9ae
mov eax, dword [ebp + 4]
cmp dword [ebx + 0x14], eax
jb 0x42e988
lea edx, [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call dword [esp + 0xdc]
test eax, eax
jne 0x42e919
mov esi, dword [ebp + 4]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x4c]
sub eax, esi
cmp esi, 4
mov edx, dword [esp + 0x40]
jae 0x42ec0f
test esi, esi
je 0x42eb4c
mov cl, byte [ebp + 0x14]
mov byte [eax], cl
and esi, 2
jne 0x42ec60
mov eax, dword [ebp + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x18]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
lea eax, [ebp + 0x4c]
mov dword [esp], eax
call fcn.0043fe40
test eax, eax
jne 0x42e919
mov eax, dword [ebx + 0x18]
cmp eax, dword [esp + 0x60]
jne 0x42e9ae
mov edx, dword [ebp + 4]
sub dword [ebx + 0x14], edx
add eax, edx
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x42e87c
mov edx, dword [esp + 0x60]
mov dword [ecx], edx
mov edx, dword [esp + eax + 0x5c]
mov dword [ecx + eax - 4], edx
lea edi, [ecx + 4]
and edi, 0xfffffffc
sub ecx, edi
mov esi, dword [esp + 0x50]
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x42ea35
mov eax, dword [esp + 0x4c]
mov byte [eax + ecx], 0
xor eax, eax
jmp 0x42eabf
mov eax, 0xffff8f00
jmp 0x42e919
lea edx, [ebp + 0x14]
mov esi, dword [ebp + 4]
mov dword [esp + 0x3c], esi
jmp 0x42eb4f
mov esi, dword [ebp + 0x14]
mov dword [eax], esi
mov ecx, dword [esp + 0x3c]
mov esi, dword [edx + ecx - 4]
mov ecx, dword [esp + 0x4c]
mov dword [ecx - 4], esi
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
mov esi, edx
sub esi, eax
mov ecx, dword [esp + 0x3c]
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x42eb45
mov dx, word [esp + eax + 0x5e]
mov word [ecx + eax - 2], dx
mov eax, dword [ebp + 0xc]
jmp 0x42ea38
mov ax, word [esi + edx - 2]
mov word [esp + edx + 0x5e], ax
jmp 0x42e798
mov eax, dword [esp + 0x3c]
mov ax, word [edx + eax - 2]
mov esi, dword [esp + 0x4c]
mov word [esi - 2], ax
mov eax, dword [ebp + 4]
mov dword [esp + 0x3c], eax
jmp 0x42eb4c