Function at 0x442240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, ecx
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
mov dword [esp], 0x101f1e1d
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor eax, eax
xor esi, esi
nop
nop
nop
nop
nop
movzx ebp, byte [esp + esi]
mov ebx, eax
and ebx, 0xa
mov edx, esi
xor edx, 0xf9f82b45
add edx, ebx
mov ebx, edx
not ebx
lea ebx, [edx + ebx*2]
inc ebx
xor ebx, edx
and ebx, ebp
xor ebx, edx
add bl, 0xa7
mov byte [esp + esi], bl
inc esi
add eax, 2
cmp esi, 7
jne 0x442280
mov eax, dword [esp]
mov edx, dword [0x452e1c]
test edx, edx
je 0x4422e1
xor ebx, ebx
mov ebp, dword [0x452e20]
mov esi, dword [esp + 0x34]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0xf3285e74
je 0x4422e7
inc ebx
cmp edx, ebx
jne 0x4422d0
jmp 0x44231d
mov esi, dword [esp + 0x34]
jmp 0x44231d
mov edx, dword [ebp + ebx*8 + 4]
cmp edx, eax
je 0x44231d
lea eax, [esp + 0x18]
lea esi, [esp + 8]
push 4
push 0x3000
push eax
push 0
push esi
mov esi, dword [esp + 0x48]
push 0xffffffffffffffff
push 6
push dword [0x452e24]
push edx
mov ebx, ecx
call fcn.00443a10
mov ecx, ebx
add esp, 0x24
test eax, eax
js 0x442384
push 0
push 0
mov eax, dword [esp + 0x14]
push dword [eax + 8]
push dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
call fcn.00441650
test eax, eax
jns 0x442353
mov ecx, eax
xor eax, eax
mov edx, 0
cmp ecx, 0x8000000d
jne 0x4423fb
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 8]
add ebx, ecx
sub ebx, dword [esp + 0x38]
xor eax, eax
mov edx, 0
mov dword [esp + 0x10], ecx
cmp ebx, ecx
jbe 0x4423fb
mov eax, dword [esp + 0x38]
lea ebp, [eax - 1]
mov ecx, dword [esp + 0x10]
jmp 0x44239b
xor eax, eax
xor edx, edx
jmp 0x4424b2
add ecx, eax
inc ecx
xor eax, eax
mov edx, 0
cmp ecx, ebx
jae 0x4423fb
test edi, edi
je 0x4423a4
cmp byte [edi], 0x3f
je 0x4423ab
movzx eax, byte [ecx]
cmp al, byte [esi]
jne 0x44238f
cmp dword [esp + 0x38], 2
jb 0x4423dd
xor eax, eax
jmp 0x4423d0
movzx edx, byte [ecx + eax + 1]
cmp dl, byte [esi + eax + 1]
jne 0x44238d
inc eax
cmp ebp, eax
je 0x4423dd
test edi, edi
je 0x4423c0
cmp byte [edi + eax + 1], 0x3f
jne 0x4423c0
jmp 0x4423cb
test ecx, ecx
je 0x4423f7
sub ecx, dword [esp + 0x10]
mov edx, ecx
sar edx, 0x1f
mov eax, dword [esp + 0xc]
add ecx, dword [eax]
adc edx, dword [eax + 4]
mov eax, ecx
jmp 0x4423fb
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], 0
mov dword [esp], 0x101f1e1d
mov word [esp + 4], 0
mov byte [esp + 6], 0
xor ecx, ecx
xor esi, esi
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + esi]
mov ebx, ecx
and ebx, 0xa
mov ebp, esi
xor ebp, 0xf9f82b45
add ebp, ebx
mov ebx, ebp
not ebx
lea ebx, [ebx*2 + 1]
add ebx, ebp
xor ebx, ebp
and ebx, edi
xor ebx, ebp
add bl, 0xa7
mov byte [esp + esi], bl
inc esi
add ecx, 2
cmp esi, 7
jne 0x442420
mov ecx, dword [0x452e1c]
test ecx, ecx
je 0x4424b2
mov esi, dword [esp]
xor edi, edi
mov ebx, dword [0x452e20]
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x731cdbf3
je 0x442480
inc edi
cmp ecx, edi
jne 0x442470
jmp 0x4424b2
mov ecx, dword [ebx + edi*8 + 4]
cmp ecx, esi
je 0x4424b2
lea esi, [esp + 0x14]
lea edi, [esp + 8]
push 0x8000
push esi
push edi
push 0xffffffffffffffff
push 4
push dword [0x452e24]
push ecx
mov esi, eax
mov edi, edx
call fcn.00443a10
mov edx, edi
mov eax, esi
add esp, 0x1c
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10