Function at 0x43e860
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
xor ecx, ecx
test eax, eax
je 0x43e893
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x43e880
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x43e8a3
add ecx, 2
mov edx, ecx
mov edi, dword [esp + 0x44]
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0xbcbdbebf
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xa0
xor cl, byte [esp + eax + 4]
add cl, 0xe0
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 4
jne 0x43e8c0
mov ebx, dword [esp + 4]
mov eax, dword [0x44a7f4]
test eax, eax
je 0x43e92f
xor ecx, ecx
mov edx, dword [0x44a7f8]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43e900
inc ecx
cmp eax, ecx
jne 0x43e8f0
jmp 0x43e92f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43e92f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 0x18
push eax
push dword [0x44a7fc]
call fcn.00439fa0
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0xf18e8fa9
mov dword [esp + 8], 0
mov eax, 0x34bb96dd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x34bb96d9]
xor ecx, eax
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0xae
mov byte [esp + eax - 0x34bb96d9], cl
inc eax
cmp eax, 0x34bb96e5
jne 0x43e950
cmp ebx, dword [esp + 4]
jne 0x43eb09
push dword [esp + 0xc]
call fcn.00436e30
add esp, 4
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0x23222122
mov dword [esp + 8], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, edx
or bl, 0xf8
xor bl, byte [esp + edx + 4]
add bl, 0x28
mov byte [esp + edx + 4], bl
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
cmp edx, 8
jb 0x43e9b0
mov edx, dword [esp + 4]
mov dword [esp + 0x10], 0xbcbdbebf
xor ebx, ebx
nop
nop
mov ecx, ebx
add cl, 0xa0
xor cl, byte [esp + ebx + 0x10]
add cl, 0xe0
mov byte [esp + ebx + 0x10], cl
inc ebx
cmp ebx, 4
jne 0x43e9e0
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x44a7f4]
test ebp, ebp
je 0x43ea54
mov ecx, edi
xor edi, edi
mov esi, dword [0x44a7f8]
nop
nop
cmp dword [esi + edi*8], 0xc0a4c970
je 0x43ea22
inc edi
cmp ebp, edi
jne 0x43ea10
mov edi, ecx
jmp 0x43ea54
mov ebp, dword [esi + edi*8 + 4]
cmp ebp, ebx
mov edi, ecx
je 0x43ea54
lea ecx, [esp + 0xc]
lea esi, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 8]
push eax
push edx
push esi
push dword [esp + 0x48]
push 0x18
push ebp
push dword [0x44a7fc]
call fcn.00439fa0
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov edx, dword [esp + 0x40]
js 0x43eafe
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x43ea70
mov eax, dword [esp]
mov ecx, dword [eax + 4]
mov dword [esi], ecx
test edi, edi
je 0x43eafe
test edx, edx
je 0x43eaf6
mov ebp, dword [edi]
mov eax, dword [esp]
mov ecx, dword [eax + 8]
cmp ebp, ecx
jb 0x43ea8a
mov ebp, ecx
mov eax, dword [esp]
lea esi, [eax + 0xc]
mov ecx, ebp
shr ecx, 2
mov edi, edx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, ebp
and ecx, 0xfffffffc
add edx, ecx
add eax, ecx
add eax, 0xc
mov dword [esp + 0x1c], eax
mov esi, ebp
and esi, 3
mov ecx, esi
shr ecx, 1
mov edi, edx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, ebp
xor ecx, 2
and ecx, esi
mov edi, dword [esp + 0x44]
je 0x43eaf6
mov esi, edx
and ebp, 2
movzx edx, byte [eax + ebp]
mov byte [esi + ebp], dl
cmp ecx, 1
je 0x43eaf6
movzx edx, byte [eax + ebp + 1]
mov byte [esi + ebp + 1], dl
cmp ecx, 2
je 0x43eaf6
movzx ecx, byte [eax + ebp + 2]
mov byte [esi + ebp + 2], cl
mov eax, dword [esp]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
push dword [esp]
call fcn.00436e70
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret