Function at 0x43dc00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add ecx, esi
sub ecx, dword [esp + 0x44]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x1c], ecx
cmp ecx, esi
jbe 0x43df5a
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x43dc74
mov eax, ecx
xor eax, 1
and ecx, 0xfffffffe
add ecx, ecx
sub ecx, eax
add esi, ecx
mov eax, dword [esp + 0x34]
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x43df5a
test ebp, ebp
je 0x43dcfa
movzx ecx, byte [ebp]
mov byte [esp + 0x10], 0x65
lea eax, [esp + 0x11]
mov byte [eax + 4], 0
mov dword [eax], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx + 0x10]
lea edi, [edx + 0x23d53407]
and edi, eax
add edi, edi
lea ebx, [edx + eax]
add ebx, 0x23d53407
mov ebp, ebx
sub ebp, edi
and ebx, 1
lea eax, [ebx + ebx]
or ebp, 1
sub eax, ebx
add eax, ebp
add al, 0xdc
mov byte [esp + edx + 0x10], al
mov eax, edx
and eax, 4
mov edi, edx
or edi, 0x87370d64
add edi, eax
add edx, edx
xor edi, 1
or edx, 0x78c8f29c
add edx, edi
cmp edx, 6
jb 0x43dca0
cmp cl, byte [esp + 0x10]
mov ebp, dword [esp + 0x48]
je 0x43dd09
movzx eax, byte [esi]
mov ecx, dword [esp + 0x40]
cmp al, byte [ecx]
jne 0x43dc65
cmp dword [esp + 0x44], 2
jb 0x43dda0
mov ecx, 1
jmp 0x43dd38
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x40]
cmp al, byte [edx + ecx]
jne 0x43dc57
inc ecx
cmp ecx, dword [esp + 0x44]
je 0x43dda0
test ebp, ebp
je 0x43dd20
movzx edx, byte [ebp + ecx]
mov byte [esp + 0x10], 0x65
lea eax, [esp + 0x11]
mov word [eax + 4], 0
mov dword [eax], 0
mov edi, 0x8846c0ee
mov eax, 0x108d81dc
mov ebp, eax
and ebp, 0x6e
mov ebx, edi
xor ebx, 0xb7
add ebx, ebp
add bl, 0x12
xor bl, byte [esp + edi + 0x77b93f22]
add bl, 0x6d
mov byte [esp + edi + 0x77b93f22], bl
inc edi
add eax, 2
cmp edi, 0x8846c0f5
jne 0x43dd60
cmp dl, byte [esp + 0x10]
mov ebp, dword [esp + 0x48]
jne 0x43dd20
jmp 0x43dd31
mov edi, dword [esp + 4]
mov ebx, edi
mov edx, dword [esp + 8]
sub ebx, edx
cmp edi, dword [esp + 0xc]
je 0x43ddbb
mov eax, dword [esp + 0x34]
jmp 0x43df41
mov dword [esp], ebx
mov eax, ebx
sar eax, 2
inc eax
mov ecx, edi
xor ecx, edx
not edx
and edx, edi
add edx, edx
sub edx, ecx
sar edx, 2
mov edi, edx
shr edi, 1
add edi, edx
cmp edi, eax
ja 0x43dddf
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.004087e0
add esp, 4
mov edx, eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x43df24
mov dword [esp + 0xc], edi
cmp edx, ebx
mov eax, dword [esp + 4]
mov dword [esp + 0x18], edx
jbe 0x43debf
cmp eax, edx
jbe 0x43debf
cmp dword [esp], 0
je 0x43df10
mov eax, dword [esp + 8]
mov edx, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 0x18]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43de53
neg edi
xor edx, edx
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43de40
add eax, edx
add ecx, edx
add edx, dword [esp]
mov edi, dword [esp + 8]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43df10
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43de70
jmp 0x43df10
mov ecx, dword [esp]
shr ecx, 2
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edi, dword [esp]
mov edx, edi
and edx, 0xfffffffc
add eax, edx
mov dword [esp + 4], eax
add edx, ebx
mov ecx, edi
xor ecx, 0xfffffffc
mov eax, edi
or eax, 3
and eax, ecx
mov ecx, eax
shr ecx, 1
mov ebx, edx
mov edi, dword [esp + 4]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test byte [esp], 1
je 0x43df10
and eax, 0xfffffffe
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 4]
mov byte [edx + eax], cl
push dword [esp + 8]
call fcn.004087f0
add esp, 4
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov dword [eax], edx
lea ecx, [edx + edi*4]
mov edi, edx
mov ebx, dword [esp]
add edi, ebx
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov ecx, edx
mov dword [esp + 8], edx
mov dword [edx + ebx], esi
add edi, 4
mov dword [esp + 4], edi
mov dword [eax + 4], edi
mov ecx, dword [esp + 0x44]
add esi, ecx
dec esi
jmp 0x43dc69
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret