Function at 0x43f8d0
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 0x43f91a
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 0x43f8f0
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 0x43f91c
xor ecx, ecx
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x43f92c
add ecx, 2
mov edx, ecx
mov esi, dword [esp + 0x40]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 4], 0xe8ebeae5
mov byte [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 4]
lea edx, [eax + 0x6d0adf57]
xor edx, ecx
add edx, 0x6db4ca35
mov ecx, edx
and ecx, 0x18
xor edx, 0x18
lea ecx, [edx + ecx*2]
mov byte [esp + eax + 4], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 5
jb 0x43f950
mov ebx, dword [esp + 4]
mov eax, dword [0x449ea0]
test eax, eax
je 0x43f9df
xor ecx, ecx
mov edx, dword [0x449ea4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43f9b0
inc ecx
cmp eax, ecx
jne 0x43f9a0
jmp 0x43f9df
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43f9df
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x4c]
push 6
push eax
push dword [0x449ea8]
call fcn.0043b0a0
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0xc3828163
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 4]
mov edx, eax
or edx, 0x738cfe60
mov edi, 0x9f
sub edi, eax
xor edi, edx
and edi, ecx
xor edi, edx
add edi, 0xbe3f081f
mov ecx, edi
and ecx, 1
xor edi, 1
lea ecx, [edi + ecx*2]
mov byte [esp + eax + 4], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x43f9f0
cmp ebx, dword [esp + 4]
jne 0x43fc09
push dword [esp + 0xc]
call fcn.00437fb0
add esp, 4
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], 0xb18e8f8e
mov word [esp + 0x14], 0
xor edx, edx
nop
nop
nop
movzx edi, byte [esp + edx + 0x10]
lea ebx, [edx + 0x9d]
mov ecx, 0x62
sub ecx, edx
xor ecx, ebx
and ecx, edi
xor ecx, ebx
add cl, 0xef
mov byte [esp + edx + 0x10], cl
mov ecx, edx
and ecx, 1
xor edx, 1
lea edx, [edx + ecx*2]
cmp edx, 6
jb 0x43fa60
mov edx, dword [esp + 0x10]
mov dword [esp + 4], 0xe8ebeae5
mov byte [esp + 8], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebx + 4]
lea edi, [ebx + 0x6d0adf57]
xor edi, ecx
add edi, 0x6db4ca35
mov ecx, edi
and ecx, 0x18
xor edi, 0x18
lea ecx, [edi + ecx*2]
mov byte [esp + ebx + 4], cl
mov ecx, ebx
and ecx, 1
xor ebx, 1
lea ebx, [ebx + ecx*2]
cmp ebx, 5
jb 0x43fab0
mov ebx, dword [esp + 4]
mov ebp, dword [0x449ea0]
test ebp, ebp
je 0x43fb40
xor edi, edi
mov ecx, dword [0x449ea4]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + edi*8], 0xc0a4c970
je 0x43fb10
inc edi
cmp ebp, edi
jne 0x43fb00
jmp 0x43fb40
mov ebp, dword [ecx + edi*8 + 4]
cmp ebp, ebx
je 0x43fb40
lea ecx, [esp + 0xc]
lea edi, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 8]
push eax
push edx
push edi
push dword [esp + 0x4c]
push 6
push ebp
push dword [0x449ea8]
call fcn.0043b0a0
add esp, 0x24
mov ebx, eax
test ebx, ebx
js 0x43fbfe
test esi, esi
je 0x43fb54
mov eax, dword [esp]
mov ecx, dword [eax + 4]
mov dword [esi], ecx
cmp dword [esp + 0x48], 0
je 0x43fbfe
mov esi, dword [esp + 0x44]
test esi, esi
je 0x43fbf2
mov eax, esi
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx]
mov edx, dword [esp]
mov ecx, dword [edx + 8]
lea ebp, [edx + 0xc]
cmp esi, ecx
jb 0x43fb82
mov esi, ecx
mov ecx, esi
shr ecx, 2
mov edi, eax
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ecx, esi
and ecx, 0xfffffffc
add eax, ecx
mov edx, dword [esp]
lea ebp, [edx + ecx]
add ebp, 0xc
mov dword [esp + 0x20], ebp
mov edx, esi
and edx, 3
mov ecx, edx
shr ecx, 1
mov edi, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ecx, esi
xor ecx, 2
and ecx, edx
je 0x43fbf2
and esi, 2
mov edi, ecx
not edi
movzx edx, byte [eax + esi]
mov byte [ebp + esi], dl
lea edx, [ecx + ecx]
add edi, edx
je 0x43fbf2
add edi, edi
movzx edx, byte [eax + esi + 1]
mov byte [ebp + esi + 1], dl
cmp edi, ecx
je 0x43fbf2
movzx ecx, byte [eax + esi + 2]
mov byte [ebp + esi + 2], cl
mov eax, dword [esp]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x48]
mov dword [edx], ecx
push dword [esp]
call fcn.00438060
add esp, 4
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret