Function at 0x43e210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x18], 0x82858487
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x43e298
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x43e250
mov esi, dword [esp + 0x18]
mov eax, dword [0x449d18]
test eax, eax
je 0x43e2ec
xor ecx, ecx
mov edx, dword [0x449d1c]
nop
nop
nop
cmp dword [edx + ecx*8], 0x2286b4e
je 0x43e2c0
inc ecx
cmp eax, ecx
jne 0x43e2b0
jmp 0x43e2ec
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43e2ec
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449d20]
push eax
call fcn.0043ab10
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43e5bf
push dword [esp + 0x10]
call fcn.00438aa0
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0x82858487
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xf
ja 0x43e389
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
lea esi, [ecx + 0xc1]
add ecx, edx
and esi, edx
add esi, esi
sub ecx, esi
add ecx, 0x2c7950c1
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov edx, ecx
xor edx, 0xb8
and ecx, 0x38
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp]
mov byte [esp + edx + 0x18], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x43e340
mov esi, dword [esp + 0x18]
mov ecx, dword [0x449d18]
test ecx, ecx
je 0x43e3ee
mov edi, esi
xor edx, edx
mov esi, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2286b4e
je 0x43e3c2
inc edx
cmp ecx, edx
jne 0x43e3b0
mov esi, edi
jmp 0x43e3ee
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x43e3ee
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449d20]
push ecx
call fcn.0043ab10
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43e5b6
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x43e4ec
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43e4e5
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edi, dword [edi]
cmp edi, eax
jb 0x43e41c
mov edi, eax
test edi, edi
je 0x43e4dd
mov eax, edi
mov edi, ebx
add edi, 0x14
mov dword [esp + 4], eax
and eax, 3
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
je 0x43e473
xor esi, esi
nop
nop
movzx ebx, word [edi]
xor ecx, ecx
test bx, bx
setne cl
lea edi, [edi + ecx*2]
mov word [edx], bx
add edx, 2
inc esi
cmp eax, esi
jne 0x43e440
mov eax, dword [esp + 4]
sub eax, esi
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 4], 4
jae 0x43e480
jmp 0x43e4dd
mov eax, dword [esp + 4]
cmp dword [esp + 4], 4
jb 0x43e4dd
nop
nop
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx], cx
lea ecx, [edi + ebx*2]
movzx esi, word [edi + ebx*2]
xor ebx, ebx
test si, si
setne bl
mov word [edx + 2], si
lea esi, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx + 4], cx
lea ecx, [esi + ebx*2]
movzx esi, word [esi + ebx*2]
xor ebx, ebx
test si, si
setne bl
lea edi, [ecx + ebx*2]
mov word [edx + 6], si
add edx, 8
add eax, 0xfffffffc
jne 0x43e480
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [edx], 0
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edi], eax
test ecx, ecx
je 0x43e4f5
mov eax, dword [ebx + 4]
mov dword [ecx], eax
cmp dword [ebp + 0x20], 0
je 0x43e5b6
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x43e5a6
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0xc]
mov edx, esi
cmp esi, eax
jb 0x43e526
mov edx, eax
mov eax, dword [ecx + 8]
add eax, ecx
mov esi, edx
mov ecx, edx
shr ecx, 2
mov edi, edx
xor edi, 3
or edx, 0xfffffffc
and edx, edi
add edx, eax
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
mov dword [esp + 0x28], esi
and esi, 0xfffffffc
add esi, ebx
mov eax, ecx
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 4], edx
mov edi, esi
mov ebx, dword [esp + 4]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 0x28]
mov ecx, ebx
xor ecx, 2
and ecx, eax
je 0x43e5a6
xor eax, 1
mov edi, ebx
or edi, 2
and edi, eax
and ebx, 2
movzx eax, byte [edx + ebx]
mov byte [esi + edi], al
cmp ecx, 1
je 0x43e5a6
movzx eax, byte [edx + ebx + 1]
mov byte [esi + edi + 1], al
cmp ecx, 2
je 0x43e5a6
movzx eax, byte [edx + ebx + 2]
mov byte [esi + edi + 2], al
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov esi, dword [esp + 0xc]
push ebx
call fcn.00438bf0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret