Function at 0x43e020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
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 0x43e040
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 + 0x17], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x43e0ef
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x10]
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 + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x58
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x43e090
mov ebx, dword [esp + 0x10]
mov eax, dword [0x449c88]
test eax, eax
je 0x43e14c
xor ecx, ecx
mov edx, dword [0x449c8c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x1201837f
je 0x43e120
inc ecx
cmp eax, ecx
jne 0x43e110
jmp 0x43e14c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43e14c
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push 0
push 0
push 2
push edx
push edi
push 6
push dword [0x449c90]
push eax
call fcn.0043a6a0
add esp, 0x24
mov ebx, eax
mov dword [esp + 0x10], 0x2b9495f3
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 0x43e1d0
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
and edx, 0x3885483d
xor eax, 0xb885483d
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]
mov ecx, eax
xor ecx, 0x54
and eax, 0x54
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x43e180
cmp ebx, dword [esp + 0x10]
jne 0x43e347
mov esi, edi
push dword [esp + 0x24]
call fcn.00438d50
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 + 0x17], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xa
ja 0x43e280
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edi, byte [esp + edx + 0x10]
lea ebx, [ecx + 0x54394418]
and ebx, edi
lea edx, [ecx + edi]
add edx, 0x54394418
add ecx, 0x18
and ecx, edi
add ecx, ebx
mov edi, edx
not edi
and edi, ecx
not ecx
and ecx, edx
sub ecx, edi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x58
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
mov ecx, dword [esp + 4]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
cmp ecx, 0xb
jb 0x43e220
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x449c88]
test ecx, ecx
je 0x43e2b2
xor edx, edx
mov edi, dword [0x449c8c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x1201837f
je 0x43e351
inc edx
cmp ecx, edx
jne 0x43e2a0
mov edx, dword [esp + 8]
test ebx, ebx
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
js 0x43e33e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43e2cc
mov eax, dword [edx + 4]
mov dword [ecx], eax
test esi, esi
je 0x43e33e
test edi, edi
je 0x43e335
mov edx, dword [esi]
mov esi, dword [esp + 8]
mov eax, dword [esi + 8]
cmp edx, eax
jb 0x43e2e3
mov edx, eax
lea eax, [esi + 0xc]
mov ecx, edx
shr ecx, 2
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
not ecx
mov eax, ecx
or eax, 0xfffffffc
add eax, edx
inc eax
add eax, dword [ebp + 0x14]
mov edi, edx
and edi, 0xfffffffc
add esi, edi
add esi, 0xc
or ecx, 3
add edx, ecx
inc edx
mov ecx, edx
shr ecx, 1
mov dword [esp + 0x30], esi
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov esi, dword [ebp + 0x18]
je 0x43e335
and edx, 0xfffffffe
mov ecx, dword [esp + 0x30]
movzx ecx, byte [ecx + edx]
mov byte [eax + edx], cl
mov edx, dword [esp + 8]
mov eax, dword [edx + 8]
mov dword [esi], eax
push edx
call fcn.00438e10
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 edx, dword [esp + 8]
je 0x43e2b6
lea edx, [esp + 0x24]
lea edi, [esp + 0x28]
push edx
push eax
push dword [esp + 0x10]
push 2
push edi
push esi
push 6
push dword [0x449c90]
push ecx
call fcn.0043a6a0
mov edx, dword [esp + 0x2c]
add esp, 0x24
mov ebx, eax
jmp 0x43e2b6