Function at 0x43df20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x43df40
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x28], cx
add ecx, 2
mov word [esp + 0x2a], cx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0xbcbdbebf
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x43dfe5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
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 + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x28
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x43dfa0
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4498e8]
test eax, eax
je 0x43e03e
xor ecx, ecx
mov edx, dword [0x4498ec]
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x1201837f
je 0x43e010
inc ecx
cmp eax, ecx
jne 0x43e000
jmp 0x43e03e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43e03e
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x4498f0]
push eax
call fcn.0043a390
add esp, 0x24
mov ebx, eax
mov dword [esp + 0x10], 0xdb9a997b
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x43e0b0
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x81cf38ec
add eax, 0x81cf38ec
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x8c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x43e070
cmp ebx, dword [esp + 0x10]
jne 0x43e1f9
push dword [esp + 0x24]
call fcn.00438880
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], 0xbcbdbebf
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xc
ja 0x43e147
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
mov edi, ecx
and edi, 0xf9b45068
xor ecx, 0xf9b45068
lea ecx, [ecx + edi*2]
lea edi, [ecx + edx]
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0xc]
add cl, 0x28
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xd
jb 0x43e100
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x4498e8]
test ecx, ecx
je 0x43e172
xor edx, edx
mov edi, dword [0x4498ec]
nop
nop
nop
cmp dword [edi + edx*8], 0x1201837f
je 0x43e203
inc edx
cmp ecx, edx
jne 0x43e160
mov edi, dword [esp + 8]
test ebx, ebx
mov edx, dword [ebp + 0x18]
js 0x43e1f0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43e189
mov eax, dword [edi + 4]
mov dword [ecx], eax
test edx, edx
je 0x43e1f0
mov eax, esi
test esi, esi
je 0x43e1eb
mov eax, dword [edx]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x43e19e
mov eax, ecx
lea edx, [edi + 0xc]
mov ecx, eax
shr ecx, 2
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add esi, ecx
mov edx, dword [esp + 8]
add edx, ecx
add edx, 0xc
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp + 0x30], edx
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, dword [esp + 8]
test al, 1
mov edx, dword [ebp + 0x18]
je 0x43e1eb
and eax, 2
mov ecx, dword [esp + 0x30]
movzx ecx, byte [ecx + eax]
mov byte [esi + eax], cl
mov eax, dword [edi + 8]
mov dword [edx], eax
push edi
call fcn.00438940
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, ebx
mov edi, dword [esp + 8]
je 0x43e176
lea edx, [esp + 0x24]
lea edi, [esp + 0x28]
push edx
push eax
push dword [esp + 0x10]
push 2
push edi
mov edi, dword [esp + 0x1c]
push dword [ebp + 8]
push 6
push dword [0x4498f0]
push ecx
call fcn.0043a390
add esp, 0x24
mov ebx, eax
jmp 0x43e176