Function at 0x43dc80
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], 0xbcbdbebf
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x43dd19
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx edx, byte [esp + ecx + 0x18]
lea esi, [eax + 0x54394418]
and esi, edx
lea ecx, [eax + edx]
add ecx, 0x54394418
add eax, 0x18
and eax, edx
add eax, esi
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0x58
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp], eax
mov eax, dword [esp]
cmp eax, 0xb
jb 0x43dcc0
mov esi, dword [esp + 0x18]
mov eax, dword [0x449c88]
test eax, eax
je 0x43dd6c
xor ecx, ecx
mov edx, dword [0x449c8c]
nop
nop
cmp dword [edx + ecx*8], 0xa2f6bc1
je 0x43dd40
inc ecx
cmp eax, ecx
jne 0x43dd30
jmp 0x43dd6c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43dd6c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449c90]
push eax
call fcn.0043a6a0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43e007
push dword [esp + 0x10]
call fcn.00438d50
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0xbcbdbebf
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1f], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xa
ja 0x43de1a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx esi, byte [esp + edx + 0x18]
lea ebx, [ecx + 0x54394418]
and ebx, esi
lea edx, [ecx + esi]
add edx, 0x54394418
add ecx, 0x18
and ecx, esi
add ecx, ebx
mov esi, edx
not esi
and esi, ecx
not ecx
and ecx, edx
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
add cl, 0x58
mov edx, dword [esp]
mov byte [esp + edx + 0x18], cl
mov ecx, dword [esp]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp], ecx
mov ecx, dword [esp]
cmp ecx, 0xb
jb 0x43ddc0
mov esi, dword [esp + 0x18]
mov ecx, dword [0x449c88]
test ecx, ecx
je 0x43de52
mov edi, esi
xor edx, edx
mov esi, dword [0x449c8c]
mov ebx, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xa2f6bc1
je 0x43de58
inc edx
cmp ecx, edx
jne 0x43de40
mov esi, edi
jmp 0x43de84
mov ebx, dword [esp + 4]
jmp 0x43de84
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x43de84
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449c90]
push ecx
call fcn.0043a6a0
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43dffe
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x43df7c
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43df75
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edi, dword [edi]
cmp edi, eax
jb 0x43deb2
mov edi, eax
test edi, edi
je 0x43df6d
mov eax, edi
mov edi, ebx
add edi, 0x14
mov dword [esp + 0xc], eax
and eax, 3
mov dword [esp + 8], esi
je 0x43df03
xor esi, esi
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
lea edi, [edi + ebx*2]
mov word [edx], cx
add edx, 2
inc esi
cmp eax, esi
jne 0x43ded0
mov eax, dword [esp + 0xc]
sub eax, esi
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 0xc], 4
jae 0x43df10
jmp 0x43df6d
mov eax, dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jb 0x43df6d
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 0x43df10
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
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
mov edi, dword [ebp + 0x20]
test ecx, ecx
je 0x43df88
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43dffe
mov dword [esp + 8], esi
cmp dword [ebp + 0x1c], 0
je 0x43dff5
mov eax, dword [edi]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jb 0x43dfa1
mov eax, ecx
mov edx, dword [ebx + 8]
add edx, ebx
mov ecx, eax
shr ecx, 2
mov esi, eax
and esi, 0xfffffffc
add esi, edx
mov ebx, dword [ebp + 0x1c]
mov edi, ebx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
not ecx
mov edx, ecx
or edx, 0xfffffffc
add edx, eax
inc edx
add edx, ebx
or ecx, 3
add eax, ecx
inc eax
mov ecx, eax
shr ecx, 1
mov ebx, esi
mov edi, edx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 4]
test al, 1
mov edi, dword [ebp + 0x20]
je 0x43dff5
and eax, 0xfffffffe
movzx ecx, byte [esi + eax]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0xc]
mov dword [edi], eax
mov esi, dword [esp + 8]
push ebx
call fcn.00438e10
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret