Function at 0x442970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0x9c9d9e9f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 4], esi
and esi, 0xb
mov eax, dword [esp + 4]
and eax, 4
xor eax, 0x74e17644
sub esi, eax
mov edi, esi
not edi
lea eax, [esi + esi*2]
lea ecx, [eax + edi*4]
mov ebx, 0xfc
sub ebx, ecx
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x10]
lea ecx, [eax + edi*4]
add ecx, 3
xor ecx, edx
add ecx, edx
and ebx, edx
sub ecx, ebx
lea eax, [esi + esi]
lea ebx, [esi - 1]
neg esi
and esi, eax
not eax
and eax, ebx
sub eax, esi
mov esi, eax
and esi, edi
add eax, edi
sub eax, esi
sub eax, esi
or eax, esi
mov esi, eax
and esi, edx
mov ebx, esi
or ebx, 2
mov edi, esi
and edi, 2
imul edi, ebx
mov ebx, eax
or ebx, edx
add eax, edx
not eax
add eax, ebx
and eax, 2
mov edx, esi
and edx, 0xfffffffd
imul edx, eax
add edx, edi
mov eax, edx
not eax
add eax, esi
sub edx, esi
mov esi, eax
and esi, 0x9116083b
and edx, 0x6ee9f7c4
or edx, esi
xor edx, ecx
or eax, ecx
xor edx, 0x6ee9f7c4
not eax
or eax, edx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
add ecx, 0x322a3bdb
mov eax, ecx
xor eax, 0xfe
or ecx, 1
and eax, ecx
add eax, ecx
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
mov esi, dword [esp + 4]
inc esi
cmp esi, 0x10
jne 0x4429b0
mov eax, dword [esp + 0x10]
mov esi, dword [0x44ed90]
test esi, esi
je 0x442ada
xor ecx, ecx
mov edx, dword [0x44ed94]
nop
cmp dword [edx + ecx*8], 0x5fb66e8c
je 0x442ab0
inc ecx
cmp esi, ecx
jne 0x442aa0
jmp 0x442ada
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x442ada
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x44ed98]
push edx
call fcn.0043e300
add esp, 0x24
mov dword [esp + 0x10], 0x63a0a1fb
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov esi, 0x1179b
mov ecx, 0xfffee864
nop
nop
nop
nop
movzx edx, byte [esp + esi - 0x1178b]
mov edi, ecx
xor edi, 0x4f16401b
mov ebx, esi
and ebx, 0x1029b
or ebx, edi
xor ebx, edx
xor ebx, 0xb0e8bd64
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0xc]
mov edi, 0x22
sub edi, edx
add edx, 0xdd
and edi, 0x3d
and edx, 0xc2
sub edx, edi
add dl, 0x23
mov byte [esp + esi - 0x1178b], dl
inc esi
dec ecx
cmp esi, 0x117a7
jne 0x442b00
cmp eax, dword [esp + 0x10]
jne 0x442e0f
push dword [esp + 0x30]
call fcn.0043c4c0
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0x9c9d9e9f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
xor edx, edx
nop
nop
mov dword [esp + 4], edx
and edx, 0xb
mov ecx, dword [esp + 4]
and ecx, 4
xor ecx, 0x74e17644
sub edx, ecx
mov ebx, edx
not ebx
lea esi, [edx + edx*2]
lea ecx, [esi + ebx*4]
mov edi, 0xfc
sub edi, ecx
mov eax, dword [esp + 4]
movzx ecx, byte [esp + eax + 0x10]
lea esi, [esi + ebx*4]
add esi, 3
xor esi, ecx
add esi, ecx
and edi, ecx
sub esi, edi
lea edi, [edx + edx]
lea eax, [edx - 1]
neg edx
and edx, edi
not edi
and edi, eax
sub edi, edx
mov edx, edi
and edx, ebx
add edi, ebx
sub edi, edx
sub edi, edx
or edi, edx
mov edx, edi
and edx, ecx
mov eax, edx
or eax, 2
mov ebx, edx
and ebx, 2
imul ebx, eax
mov eax, edi
or eax, ecx
add edi, ecx
not edi
add edi, eax
and edi, 2
mov ecx, edx
and ecx, 0xfffffffd
imul ecx, edi
add ecx, ebx
mov edi, ecx
not edi
add edi, edx
sub ecx, edx
mov eax, edi
and eax, 0x9116083b
and ecx, 0x6ee9f7c4
or ecx, eax
xor ecx, esi
or edi, esi
xor ecx, 0x6ee9f7c4
not edi
or edi, ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xc]
add eax, 0x322a3bdb
mov ecx, eax
xor ecx, 0xfe
or eax, 1
and ecx, eax
add ecx, eax
mov eax, dword [esp + 4]
mov byte [esp + eax + 0x10], cl
mov edx, dword [esp + 4]
inc edx
cmp edx, 0x10
jne 0x442ba0
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [0x44ed90]
test eax, eax
je 0x442cb0
xor ecx, ecx
mov edx, dword [0x44ed94]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x24]
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x5fb66e8c
je 0x442cbc
inc ecx
cmp eax, ecx
jne 0x442ca0
jmp 0x442ced
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x24]
jmp 0x442ced
mov eax, dword [edx + ecx*8 + 4]
cmp eax, dword [esp + 4]
je 0x442ced
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x30]
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x44ed98]
push eax
call fcn.0043e300
add esp, 0x24
mov dword [esp + 4], eax
test edi, edi
je 0x442e02
cmp dword [esp + 4], 0
js 0x442e02
test esi, esi
je 0x442dfb
mov eax, dword [ebx + 0xc]
shr eax, 1
mov ecx, dword [edi]
cmp ecx, eax
jb 0x442d15
mov ecx, eax
test ecx, ecx
je 0x442df2
add dword [esp + 8], 0x10
mov eax, ecx
and eax, 3
je 0x442d7b
mov dword [esp + 0x2c], ecx
xor edi, edi
mov esi, dword [ebp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
movzx ebx, word [ecx]
xor edx, edx
test bx, bx
setne dl
lea ecx, [ecx + edx*2]
mov dword [esp + 8], ecx
mov word [esi], bx
add esi, 2
inc edi
cmp eax, edi
jne 0x442d40
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x2c]
mov esi, ecx
sub esi, edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [esp + 0x24]
cmp ecx, 4
jae 0x442d82
jmp 0x442df2
mov esi, ecx
cmp ecx, 4
jb 0x442df2
mov ebx, dword [esp + 0x28]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
movzx edx, word [eax]
xor ecx, ecx
test dx, dx
setne cl
mov word [ebx], dx
lea edx, [eax + ecx*2]
movzx eax, word [eax + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
mov word [ebx + 2], ax
lea eax, [edx + ecx*2]
movzx ecx, word [edx + ecx*2]
xor edx, edx
test cx, cx
setne dl
mov word [ebx + 4], cx
lea ecx, [eax + edx*2]
movzx edx, word [eax + edx*2]
xor eax, eax
test dx, dx
setne al
lea eax, [ecx + eax*2]
mov dword [esp + 8], eax
mov word [ebx + 6], dx
add ebx, 8
add esi, 0xfffffffc
jne 0x442d90
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov word [eax], 0
mov eax, dword [ebx + 0xc]
shr eax, 1
mov dword [edi], eax
push ebx
call fcn.0043c6e0
add esp, 4
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret