Function at 0x43f650
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x3c]
xor ecx, ecx
test eax, eax
je 0x43f683
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 0x43f670
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x43f699
mov edx, ecx
and edx, 2
xor ecx, 2
lea edx, [ecx + edx*2]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp], 0x60676665
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0xe9
mov ecx, 0x16
nop
movzx edi, byte [esp + eax - 0xe9]
mov ebx, ecx
or ebx, edi
lea edx, [edi + edi]
not edx
add edx, edi
or edx, eax
and edx, ebx
mov bl, 0x72
sub bl, dl
mov byte [esp + eax - 0xe9], bl
inc eax
dec ecx
cmp eax, 0xf0
jne 0x43f6c0
mov ebx, dword [esp]
mov eax, dword [0x44aef0]
test eax, eax
je 0x43f73f
xor ecx, ecx
mov edx, dword [0x44aef4]
nop
cmp dword [edx + ecx*8], 0x877f203a
je 0x43f710
inc ecx
cmp eax, ecx
jne 0x43f700
jmp 0x43f73f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43f73f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x4c]
push 0x18
push eax
push dword [0x44aef8]
call fcn.0043be00
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xb7760967
mov word [esp + 4], 0
xor eax, eax
nop
movzx ecx, byte [esp + eax]
mov edi, eax
xor edi, 0x669893c1
mov edx, eax
or edx, 6
and edx, edi
mov edi, edx
and edi, 5
mov ebp, eax
and ebp, 2
or edx, 2
imul edx, ebp
xor ebp, 2
imul ebp, edi
mov edi, eax
xor edi, 0x99676c3e
add edi, ebp
add edi, edx
xor edi, ecx
add edi, 0xfae2c9
mov ecx, edi
and ecx, 1
xor edi, 1
lea ecx, [edi + ecx*2]
mov byte [esp + eax], cl
inc eax
cmp eax, 6
jne 0x43f750
cmp ebx, dword [esp]
jne 0x43f962
push dword [esp + 0xc]
call fcn.004394c0
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0x393a3b32
mov dword [esp + 0x14], 0
mov edx, 0xb
mov ebx, 0xf4
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edx + 5]
mov edi, ecx
not edi
or edi, ebx
add edi, ecx
inc edi
lea ebp, [ecx + ecx]
not ebp
add ebp, ecx
and ebp, edx
or ecx, ebx
not ecx
or ecx, edi
or ecx, ebp
add cl, 0xc9
mov byte [esp + edx + 5], cl
inc edx
dec ebx
cmp edx, 0x13
jne 0x43f7e0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp], 0x60676665
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov ebx, 0xe9
mov ebp, 0x16
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ebx - 0xe9]
mov esi, ebp
or esi, edi
lea ecx, [edi + edi]
not ecx
add ecx, edi
or ecx, ebx
and ecx, esi
mov dl, 0x72
sub dl, cl
mov byte [esp + ebx - 0xe9], dl
inc ebx
dec ebp
cmp ebx, 0xf0
jne 0x43f840
mov ebx, dword [esp]
mov ecx, dword [0x44aef0]
test ecx, ecx
je 0x43f8a0
xor ebp, ebp
mov edi, dword [0x44aef4]
mov esi, dword [esp + 0x48]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0x877f203a
je 0x43f8a6
inc ebp
cmp ecx, ebp
jne 0x43f890
jmp 0x43f8e0
mov esi, dword [esp + 0x48]
jmp 0x43f8e0
mov ecx, dword [edi + ebp*8 + 4]
cmp ecx, ebx
je 0x43f8e0
lea edx, [esp + 0xc]
lea esi, [esp + 0x18]
push edx
push dword [esp + 0xc]
push eax
push dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x5c]
push dword [esp + 0x4c]
push 0x18
push ecx
push dword [0x44aef8]
mov edi, eax
call fcn.0043be00
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x43f959
mov edx, dword [esp + 0x40]
test edx, edx
je 0x43f8f1
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test esi, esi
je 0x43f959
cmp dword [esp + 0x44], 0
je 0x43f954
mov edx, dword [esi]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x43f907
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x44]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov esi, dword [esp + 0x48]
je 0x43f954
and edx, 2
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [esi], ecx
push eax
call fcn.00439550
add esp, 4
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret