Function at 0x43e550
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc], 0xbcbdbebf
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xa0
xor cl, byte [esp + eax + 0xc]
add cl, 0xe0
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 4
jne 0x43e570
mov eax, dword [esp + 0xc]
mov ebx, dword [0x44a7f4]
test ebx, ebx
je 0x43e5dc
xor ecx, ecx
mov edx, dword [0x44a7f8]
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3602324e
je 0x43e5b0
inc ecx
cmp ebx, ecx
jne 0x43e5a0
jmp 0x43e5dc
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x43e5dc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x44a7fc]
call fcn.00439fa0
add esp, 0x24
cmp eax, 0xc0000023
jne 0x43e849
push dword [esp + 8]
call fcn.00436e30
add esp, 4
mov esi, eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], 0xbcbdbebf
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
add bl, 0xa0
xor bl, byte [esp + edx + 0x10]
add bl, 0xe0
mov byte [esp + edx + 0x10], bl
inc edx
cmp edx, 4
jne 0x43e610
mov ebx, dword [esp + 0x10]
mov edx, dword [0x44a7f4]
test edx, edx
mov dword [esp], esi
je 0x43e68a
xor esi, esi
mov ebp, dword [0x44a7f8]
nop
cmp dword [ebp + esi*8], 0x3602324e
je 0x43e651
inc esi
cmp edx, esi
jne 0x43e640
jmp 0x43e687
mov edx, dword [ebp + esi*8 + 4]
cmp edx, ebx
mov esi, dword [esp]
je 0x43e68a
lea esi, [esp + 8]
push esi
push ecx
push dword [esp + 8]
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x44a7fc]
mov esi, eax
call fcn.00439fa0
add esp, 0x24
mov ebx, eax
mov eax, esi
mov esi, dword [esp]
mov dword [esp + 0x14], ebx
test ebx, ebx
mov ebx, dword [esp + 0x44]
js 0x43e83c
mov edx, dword [esp + 0x38]
test edx, edx
mov ebp, dword [esp + 0x3c]
je 0x43e799
test edi, edi
je 0x43e792
mov ebp, dword [esi + 0x10]
shr ebp, 1
mov ecx, dword [edx]
cmp ecx, ebp
jb 0x43e6bf
mov ecx, ebp
test ecx, ecx
je 0x43e715
add eax, 0x14
mov dword [esp + 4], ecx
and ecx, 3
mov ebp, dword [esp + 0x3c]
je 0x43e71b
mov ebx, dword [esp + 4]
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x43e6e0
mov ecx, ebx
sub ecx, esi
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
cmp dword [esp + 4], 4
jae 0x43e730
jmp 0x43e78d
mov ebp, dword [esp + 0x3c]
jmp 0x43e78d
mov ecx, dword [esp + 4]
cmp dword [esp + 4], 4
jb 0x43e78d
nop
nop
nop
nop
nop
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 eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x43e730
mov edx, dword [esp + 0x38]
mov esi, dword [esp]
mov ebx, dword [esp + 0x44]
mov word [edi], 0
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [edx], eax
test ebp, ebp
je 0x43e7a3
mov eax, dword [esi + 4]
mov dword [ebp], eax
test ebx, ebx
je 0x43e83c
cmp dword [esp + 0x40], 0
je 0x43e837
mov eax, dword [ebx]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x43e7c1
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, dword [esp]
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov ebp, dword [esp + 0x40]
mov edi, ebp
add ebp, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov esi, eax
and esi, 3
mov ecx, esi
shr ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, eax
xor ecx, 2
and ecx, esi
mov esi, dword [esp]
mov ebx, dword [esp + 0x44]
je 0x43e837
and eax, 2
movzx ebx, byte [edx + eax]
mov byte [ebp + eax], bl
mov ebx, dword [esp + 0x44]
cmp ecx, 1
je 0x43e837
movzx ebx, byte [edx + eax + 1]
mov byte [ebp + eax + 1], bl
mov ebx, dword [esp + 0x44]
cmp ecx, 2
je 0x43e837
movzx ecx, byte [edx + eax + 2]
mov byte [ebp + eax + 2], cl
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
push esi
call fcn.00436e70
add esp, 4
mov eax, dword [esp + 0x14]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret