Function at 0x43d650
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43d69a
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x43d670
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
add ecx, esi
jmp 0x43d69c
xor ecx, ecx
mov word [esp + 0x1c], cx
mov edx, eax
test eax, eax
je 0x43d6ac
add ecx, 2
mov edx, ecx
mov esi, dword [esp + 0x44]
mov word [esp + 0x1e], dx
mov dword [esp + 0x20], eax
mov dword [esp], 0xb08f8e8d
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0x265e1b9d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x265e1b9d]
xor ecx, eax
mov edx, ecx
xor edx, 0x12
and ecx, 0x6d
add ecx, ecx
sub ecx, edx
inc cl
mov byte [esp + eax - 0x265e1b9d], cl
inc eax
cmp eax, 0x265e1ba4
jne 0x43d6e0
mov ebp, dword [esp]
mov eax, dword [0x4490f4]
test eax, eax
je 0x43d75f
xor ecx, ecx
mov edx, dword [0x4490f8]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43d730
inc ecx
cmp eax, ecx
jne 0x43d720
jmp 0x43d75f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebp
je 0x43d75f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x4c]
push 0x18
push eax
push dword [0x4490fc]
call fcn.00438910
add esp, 0x24
mov ebp, eax
mov dword [esp], 0x8f4e492f
mov eax, esp
xor ecx, ecx
xor edx, edx
nop
nop
nop
nop
mov edi, ecx
and edi, 0xfffffffc
add edi, edx
movzx ebx, byte [eax]
xor ebx, edi
mov edi, ebx
xor edi, 0xb6
and ebx, 0x44
add ebx, ebx
xor ebx, 0x81
add ebx, edi
inc bl
mov byte [eax], bl
inc edx
inc eax
add ecx, 2
cmp ecx, 8
jne 0x43d770
cmp ebp, dword [esp]
jne 0x43d9d6
push dword [esp + 0x10]
call fcn.00435f50
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0xe9eaebe2
mov dword [esp + 0x18], 0
mov eax, 0x32317157
mov ecx, 0xcdce8ea8
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x32317143]
mov ebx, eax
and ebx, edi
add ebx, ebx
lea ebp, [eax + edi]
mov edx, ecx
sub edx, edi
and edx, ebx
not ebx
and ebx, ebp
sub ebx, edx
add bl, 0x4d
mov byte [esp + eax - 0x32317143], bl
inc eax
dec ecx
cmp eax, 0x3231715f
jne 0x43d7e0
mov edx, dword [esp + 0x14]
mov dword [esp], 0xb08f8e8d
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0x265e1b9d
nop
nop
nop
nop
movzx ebx, byte [esp + eax - 0x265e1b9d]
xor ebx, eax
mov ecx, ebx
xor ecx, 0x12
and ebx, 0x6d
add ebx, ebx
sub ebx, ecx
inc bl
mov byte [esp + eax - 0x265e1b9d], bl
inc eax
cmp eax, 0x265e1ba4
jne 0x43d830
mov ebp, dword [esp]
mov eax, dword [0x4490f4]
test eax, eax
je 0x43d8b3
xor ebx, ebx
mov edi, dword [0x4490f8]
nop
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0xc0a4c970
je 0x43d880
inc ebx
cmp eax, ebx
jne 0x43d870
jmp 0x43d8b3
mov eax, dword [edi + ebx*8 + 4]
cmp eax, ebp
je 0x43d8b3
lea ecx, [esp + 0x10]
lea edi, [esp + 0x1c]
push ecx
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
push ecx
push edx
push edi
push dword [esp + 0x4c]
push 0x18
push eax
push dword [0x4490fc]
call fcn.00438910
add esp, 0x24
mov ebp, eax
test ebp, ebp
js 0x43d9ca
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x43d8cc
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
cmp dword [esp + 0x48], 0
je 0x43d9ca
test esi, esi
je 0x43d9bd
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jb 0x43d8f2
mov eax, ecx
mov edx, dword [esp + 8]
lea ebx, [edx + 0xc]
mov ecx, eax
shr ecx, 2
mov edi, esi
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ecx, eax
and ecx, 0xfffffffc
add esi, ecx
add edx, ecx
add edx, 0xc
mov dword [esp + 0xc], eax
mov ecx, eax
and ecx, 3
mov ebx, ecx
not ebx
or ebx, 1
add ebx, ecx
shr ecx, 1
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, ebx
inc ecx
je 0x43d9bd
mov eax, dword [esp + 0xc]
and eax, 2
add edx, eax
add esi, eax
mov edi, ecx
and edi, 7
je 0x43d966
mov dword [esp + 0xc], ebx
xor eax, eax
movzx ebx, byte [edx + eax]
mov byte [esi + eax], bl
inc eax
cmp edi, eax
jne 0x43d950
add edx, eax
add esi, eax
sub ecx, eax
mov ebx, dword [esp + 0xc]
cmp ebx, 7
jb 0x43d9bd
xor eax, eax
nop
nop
nop
movzx ebx, byte [edx + eax]
mov byte [esi + eax], bl
movzx ebx, byte [edx + eax + 1]
mov byte [esi + eax + 1], bl
movzx ebx, byte [edx + eax + 2]
mov byte [esi + eax + 2], bl
movzx ebx, byte [edx + eax + 3]
mov byte [esi + eax + 3], bl
movzx ebx, byte [edx + eax + 4]
mov byte [esi + eax + 4], bl
movzx ebx, byte [edx + eax + 5]
mov byte [esi + eax + 5], bl
movzx ebx, byte [edx + eax + 6]
mov byte [esi + eax + 6], bl
movzx ebx, byte [edx + eax + 7]
mov byte [esi + eax + 7], bl
add eax, 8
cmp ecx, eax
jne 0x43d970
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
push dword [esp + 8]
call fcn.00435fb0
add esp, 4
mov eax, ebp
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret