Function at 0x43dbc0
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 + 0x20], 0
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x43dc40
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
mov edx, eax
and edx, 0xf9b45068
xor eax, 0xf9b45068
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
add al, 0x28
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x43dc00
mov esi, dword [esp + 0x18]
mov eax, dword [0x4498e8]
test eax, eax
je 0x43dc9c
xor ecx, ecx
mov edx, dword [0x4498ec]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xa2f6bc1
je 0x43dc70
inc ecx
cmp eax, ecx
jne 0x43dc60
jmp 0x43dc9c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43dc9c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4498f0]
push eax
call fcn.0043a390
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43df0c
push dword [esp + 0x10]
call fcn.00438880
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0xbcbdbebf
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xc
ja 0x43dd32
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
mov esi, ecx
and esi, 0xf9b45068
xor ecx, 0xf9b45068
lea ecx, [ecx + esi*2]
lea esi, [ecx + edx]
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
add cl, 0x28
mov edx, dword [esp]
mov byte [esp + edx + 0x18], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xd
jb 0x43dcf0
mov esi, dword [esp + 0x18]
mov ecx, dword [0x4498e8]
test ecx, ecx
je 0x43dd8e
mov edi, esi
xor edx, edx
mov esi, dword [0x4498ec]
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xa2f6bc1
je 0x43dd62
inc edx
cmp ecx, edx
jne 0x43dd50
mov esi, edi
jmp 0x43dd8e
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x43dd8e
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4498f0]
push ecx
call fcn.0043a390
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43df03
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x43de7c
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43de75
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edi, dword [edi]
cmp edi, eax
jb 0x43ddbc
mov edi, eax
test edi, edi
mov dword [esp + 0xc], esi
je 0x43de69
mov dword [esp + 4], ebx
mov esi, ebx
add esi, 0x14
mov eax, edi
and eax, 3
mov dword [esp + 8], edi
je 0x43ddf8
nop
nop
nop
nop
dec edi
movzx ecx, word [esi]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [esi + ebx*2]
mov word [edx], cx
add edx, 2
dec eax
jne 0x43dde0
cmp dword [esp + 8], 4
mov ebx, dword [esp + 4]
mov ecx, dword [ebp + 0x18]
jb 0x43de69
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
setne cl
mov word [edx], ax
lea eax, [esi + ecx*2]
movzx ecx, word [esi + ecx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx + 2], cx
lea ecx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [edx + 4], ax
lea eax, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [eax + ebx*2]
mov word [edx + 6], cx
add edx, 8
add edi, 0xfffffffc
jne 0x43de10
mov ebx, dword [esp + 4]
mov ecx, dword [ebp + 0x18]
mov word [edx], 0
mov esi, dword [esp + 0xc]
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 0x43de88
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43df03
cmp dword [ebp + 0x1c], 0
je 0x43defe
mov dword [esp + 0xc], esi
mov eax, dword [edi]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jb 0x43dea1
mov eax, ecx
mov dword [esp + 4], ebx
mov esi, dword [ebx + 8]
add esi, ebx
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov ebx, dword [ebp + 0x1c]
mov edi, ebx
add ebx, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov dword [esp + 8], edx
mov dword [esp + 0x28], ebx
mov edi, ebx
mov esi, dword [esp + 8]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ebx, dword [esp + 4]
test al, 1
mov esi, dword [esp + 0xc]
mov edi, dword [ebp + 0x20]
je 0x43defe
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x28]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0xc]
mov dword [edi], eax
push ebx
call fcn.00438940
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret