Function at 0x43ce50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], 0xb1b2b3b4
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xa3
xor cl, byte [esp + eax + 0x10]
add cl, 0xe8
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 4
jne 0x43ce70
mov eax, dword [esp + 0x10]
mov ebx, dword [0x448334]
test ebx, ebx
je 0x43cedc
xor ecx, ecx
mov edx, dword [0x448338]
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xcf2d66db
je 0x43ceb0
inc ecx
cmp ebx, ecx
jne 0x43cea0
jmp 0x43cedc
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x43cedc
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x44833c]
call fcn.0043a070
add esp, 0x24
cmp eax, 0xc0000023
jne 0x43d135
push dword [esp + 0xc]
call fcn.00438690
add esp, 4
mov dword [esp], eax
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x14], 0xb1b2b3b4
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
add bl, 0xa3
xor bl, byte [esp + edx + 0x14]
add bl, 0xe8
mov byte [esp + edx + 0x14], bl
inc edx
cmp edx, 4
jne 0x43cf10
mov ecx, dword [esp + 0x14]
mov edx, dword [0x448334]
test edx, edx
je 0x43cf73
mov dword [esp + 8], ebp
mov dword [esp + 4], ecx
xor esi, esi
mov ebp, dword [0x448338]
mov ebx, dword [esp + 0x44]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + esi*8], 0xcf2d66db
je 0x43cf79
mov ecx, esi
and ecx, 1
xor esi, 1
lea esi, [esi + ecx*2]
cmp esi, edx
jb 0x43cf50
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 4]
jmp 0x43cfbb
mov ebx, dword [esp + 0x44]
jmp 0x43cfbb
mov edx, dword [ebp + esi*8 + 4]
mov ecx, dword [esp + 4]
cmp edx, ecx
mov esi, dword [esp + 0x3c]
je 0x43cfbb
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0xc]
push dword [esp + 8]
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x18
push edx
push dword [0x44833c]
mov esi, eax
call fcn.0043a070
add esp, 0x24
mov ecx, eax
mov eax, esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 4], ecx
test ecx, ecx
mov ebp, dword [esp + 0x40]
js 0x43d126
cmp dword [esp + 0x38], 0
je 0x43d0bd
test edi, edi
je 0x43d0af
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x10]
shr ecx, 1
mov edx, dword [esp + 0x38]
mov edx, dword [edx]
cmp edx, ecx
jb 0x43cff2
mov edx, ecx
test edx, edx
je 0x43d0aa
add eax, 0x14
mov ecx, edx
and ecx, 3
je 0x43d040
mov dword [esp + 8], edx
xor esi, esi
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 0x43d010
mov edx, dword [esp + 8]
mov ecx, edx
sub ecx, esi
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp edx, 4
jae 0x43d050
jmp 0x43d0aa
mov ecx, edx
cmp edx, 4
jb 0x43d0aa
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 0x43d050
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov word [edi], 0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
shr eax, 1
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
test esi, esi
je 0x43d0c9
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [esi], eax
test ebx, ebx
je 0x43d126
test ebp, ebp
je 0x43d11e
mov eax, dword [ebx]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x43d0df
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 edi, ebp
add ebp, 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, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test al, 1
je 0x43d11e
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebp + eax], cl
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
push dword [esp]
call fcn.004386c0
add esp, 4
mov eax, dword [esp + 4]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret