Function at 0x440120
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [esp + 0x30]
mov dword [esp + 4], 0x101f1e1d
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 4]
lea ecx, [eax + 0xb2371c5]
lea esi, [eax + 0xc5]
and esi, edx
or ecx, edx
xor ecx, esi
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0x26
mov byte [esp + eax + 4], cl
mov ecx, eax
and ecx, 5
xor eax, 0x26208d95
lea eax, [eax + ecx*2]
add eax, 0xd9df726c
cmp eax, 7
jb 0x440150
mov ebp, dword [esp + 4]
mov eax, dword [0x44bcdc]
test eax, eax
je 0x4401ee
xor ecx, ecx
mov edx, dword [0x44bce0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x4f699cd4
je 0x4401c0
inc ecx
cmp eax, ecx
jne 0x4401b0
jmp 0x4401ee
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x4401ee
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push eax
push dword [0x44bce4]
call fcn.0043cba0
add esp, 0x24
mov ebp, eax
cmp ebp, 0xc0000023
jne 0x440413
push dword [esp + 0x10]
call fcn.0043a220
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x101f1e1d
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx + 4]
lea ebx, [edx + 0xb2371c5]
lea esi, [edx + 0xc5]
and esi, ecx
or ebx, ecx
xor ebx, esi
mov ecx, ebx
and ecx, 1
or ebx, 1
add ebx, ecx
add bl, 0x26
mov byte [esp + edx + 4], bl
mov ecx, edx
and ecx, 5
xor edx, 0x26208d95
lea edx, [edx + ecx*2]
add edx, 0xd9df726c
cmp edx, 7
jb 0x440230
mov ebp, dword [esp + 4]
mov edx, dword [0x44bcdc]
test edx, edx
je 0x4402a0
xor esi, esi
mov ecx, dword [0x44bce0]
mov ebx, dword [esp + 0x38]
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0x4f699cd4
je 0x4402a6
inc esi
cmp edx, esi
jne 0x440290
jmp 0x4402dc
mov ebx, dword [esp + 0x38]
jmp 0x4402dc
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebp
je 0x4402dc
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
push dword [esp + 8]
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44bce4]
mov esi, eax
call fcn.0043cba0
add esp, 0x24
mov ebp, eax
mov eax, esi
test ebp, ebp
mov ecx, dword [esp]
js 0x44040a
mov esi, dword [esp + 0x34]
test esi, esi
je 0x440393
test edi, edi
je 0x44038c
mov ecx, dword [ecx + 0x10]
shr ecx, 1
mov edx, dword [esi]
cmp edx, ecx
jb 0x440308
mov edx, ecx
test edx, edx
je 0x440384
add eax, 0x14
mov ecx, edx
test dl, 1
je 0x440346
not ecx
lea ecx, [ecx + edx*2]
movzx esi, word [eax]
mov word [esp + 0xc], si
test si, si
mov ebx, 0
setne bl
mov esi, ebx
mov ebx, dword [esp + 0x38]
lea eax, [eax + esi*2]
movzx esi, word [esp + 0xc]
mov word [edi], si
mov esi, dword [esp + 0x34]
add edi, 2
cmp edx, 1
je 0x440384
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx edx, word [eax + ebx*2]
xor eax, eax
test dx, dx
setne al
lea eax, [esi + eax*2]
mov word [edi + 2], dx
add edi, 4
add ecx, 0xfffffffe
jne 0x440350
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov word [edi], 0
mov ecx, dword [esp]
mov eax, dword [ecx + 0x10]
shr eax, 1
mov dword [esi], eax
test ebx, ebx
je 0x44039c
mov eax, dword [ecx + 4]
mov dword [ebx], eax
cmp dword [esp + 0x40], 0
je 0x44040a
cmp dword [esp + 0x3c], 0
je 0x440401
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x4403b9
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, ecx
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov ebx, dword [esp + 0x3c]
mov edi, ebx
add ebx, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, ebx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, dword [esp]
test al, 1
je 0x440401
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebx + eax], cl
mov ecx, dword [esp]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
push ecx
call fcn.0043a2b0
add esp, 4
mov eax, ebp
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret