Function at 0x443120
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x228]
test eax, eax
mov dword [esp + 8], ebx
jne 0x44314c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, ebx
call fcn.0044b770
pop ebx
add esp, 0x20
ret 8
mov edx, dword [ebx + 0x1c0]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x1bc]
mov ecx, ebx
mov dword [esp + 0x18], edx
call fcn.0043c970
mov esi, dword [esp + 0x34]
mov ebp, eax
mov ecx, esi
mov dword [esp + 0x1c], ebp
call fcn.0043c970
test ebp, ebp
mov dword [esp + 0x10], eax
jne 0x44318e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 8
test eax, eax
je 0x44317f
mov eax, dword [ebx + 0x228]
cmp eax, 0x378
ja 0x44340c
je 0x44339b
sub eax, 0x22b
je 0x4432c8
sub eax, 0xa
jne 0x4432a9
mov ecx, ebx
call fcn.00401350
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.00401350
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x38]
movzx cx, al
shr al, 3
movzx ax, al
mov ebx, ecx
and ebx, 0xfff8
shl ebx, 5
or ebx, ecx
and ebx, 0xfffc
shl ebx, 3
or ebx, eax
test edi, edi
jle 0x4432a5
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x44327e
mov ecx, dword [esp + 0x10]
sub ecx, ebp
movzx eax, bx
mov esi, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], edx
jmp 0x443227
mov ecx, dword [esp + 0x24]
mov dx, word [ecx + esi]
movzx edi, dx
mov ecx, eax
xor ecx, edi
shr ecx, 1
and ecx, 0x7bef
mov ebp, eax
and ebp, edi
add ecx, ebp
shr ecx, 4
and ecx, 0x841
add ecx, 0x801
shr ecx, 1
and ecx, 0x821
add ecx, 0x7bef
xor ecx, 0x7bef
sub edx, ecx
add edx, ebx
or edx, ecx
mov ecx, dword [esp + 0x38]
mov word [esi], dx
add esi, 2
dec ecx
mov dword [esp + 0x38], ecx
jne 0x443223
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add ebp, esi
add edx, ecx
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jne 0x443206
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x228]
test eax, eax
mov esi, 0x4000
jne 0x4434d0
mov ecx, ebx
call fcn.00449910
jmp 0x4434e9
mov ecx, ebx
call fcn.00401350
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.00401350
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x38]
movzx cx, al
shr al, 3
movzx dx, al
mov esi, ecx
and esi, 0xfff8
shl esi, 5
or esi, ecx
and esi, 0xfff8
shl esi, 2
or esi, edx
test edi, edi
jle 0x4432a9
mov dword [esp + 0x20], edi
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x443373
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edi, ebp
sub eax, ebp
mov dword [esp + 0x38], ecx
jmp 0x443330
xor ecx, ecx
mov cx, word [edi + eax]
add edi, 2
mov edx, ecx
xor edx, esi
mov ebx, ecx
and edx, 0x7bde
and ebx, esi
lea edx, [edx + ebx*2]
shr edx, 5
and edx, 0x421
add edx, 0x3def
xor edx, 0x3def
sub ecx, edx
add ecx, esi
or ecx, edx
mov word [edi - 2], cx
dec dword [esp + 0x38]
jne 0x443330
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x20]
add ebp, edx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jne 0x443310
jmp 0x4432a9
mov ecx, ebx
call fcn.00401350
mov ecx, dword [esp + 0x34]
mov ebx, eax
call fcn.00401350
test edi, edi
mov dword [esp + 0x2c], eax
jle 0x4432a5
mov dword [esp + 0x20], edi
lea ecx, [ecx]
test ebx, ebx
jle 0x4433ec
mov esi, dword [esp + 0x10]
movzx edi, byte [esp + 0x38]
mov edx, ebp
sub esi, ebp
mov eax, ebx
movzx ecx, byte [edx + esi]
add ecx, edi
cmp ecx, 0xff
jl 0x4433e6
mov ecx, 0xff
mov byte [edx], cl
inc edx
dec eax
jne 0x4433d3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add edx, ecx
add ebp, ebx
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
jne 0x4433c0
jmp 0x4432a5
cmp eax, 0x22b8
jne 0x4432a9
mov ecx, ebx
call fcn.00401350
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.00401350
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x38]
mov esi, eax
shl esi, 8
or esi, eax
shl esi, 8
or esi, eax
shl esi, 8
or esi, eax
test edi, edi
jle 0x4432a9
mov dword [esp + 0x20], edi
nop
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4434ac
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, ebp
sub eax, ebp
mov dword [esp + 0x38], edx
mov edx, dword [edi + eax]
mov ecx, edx
xor ecx, esi
shr ecx, 1
and ecx, 0x7f7f7f7f
mov ebx, edx
and ebx, esi
add ecx, ebx
shr ecx, 7
and ecx, 0x1010101
add ecx, 0x7f7f7f7f
xor ecx, 0x7f7f7f7f
sub edx, ecx
add edx, esi
or edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [edi], edx
add edi, 4
dec ecx
mov dword [esp + 0x38], ecx
jne 0x443468
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x20]
add ebp, edx
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jne 0x443450
jmp 0x4432a9
cmp dword [ebx + 0x1ac], esi
jne 0x4434e9
mov ebx, dword [ebx + 0x18c]
mov ecx, dword [ebx]
push 0
push ebx
call dword [ecx + 0x80]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x228]
test eax, eax
jne 0x443508
call fcn.00449910
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 8
cmp dword [ecx + 0x1ac], esi
jne 0x443521
mov eax, dword [ecx + 0x18c]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x80]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 8