Function at 0x43bf70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x43bf90
sar ecx, 1
mov edx, ecx
and edx, 2
mov esi, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffd
imul esi, edx
lea edx, [esi + ecx]
mov word [esp + 0x20], dx
add ecx, esi
add ecx, 2
mov word [esp + 0x22], cx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0xb2b5b4b7
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x43c035
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x2eec1bb9
add eax, 0xb9
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xf1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x43bff0
mov esi, dword [esp + 0x10]
mov eax, dword [0x4491d8]
test eax, eax
je 0x43c08e
xor ecx, ecx
mov edx, dword [0x4491dc]
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x36e97270
je 0x43c060
inc ecx
cmp eax, ecx
jne 0x43c050
jmp 0x43c08e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43c08e
lea ecx, [esp + 8]
lea edx, [esp + 0x20]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x4491e0]
push eax
call fcn.00438180
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43c1df
push dword [esp + 8]
call fcn.00435f70
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], 0xb2b5b4b7
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 8
ja 0x43c127
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + edx]
add esi, 0x2eec1bb9
add ecx, 0xb9
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, esi
not ecx
and ecx, esi
add ecx, ecx
sub ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xf1
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 9
jb 0x43c0e0
mov esi, dword [esp + 0x10]
mov ecx, dword [0x4491d8]
test ecx, ecx
je 0x43c154
mov ebx, edi
xor edx, edx
mov edi, dword [0x4491dc]
nop
cmp dword [edi + edx*8], 0x36e97270
je 0x43c1e9
inc edx
cmp ecx, edx
jne 0x43c140
mov edi, ebx
mov edx, dword [esp + 4]
test esi, esi
js 0x43c1d6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c168
mov eax, dword [edx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43c1d6
cmp dword [ebp + 0x14], 0
je 0x43c1d1
mov eax, dword [edi]
mov ecx, dword [edx + 8]
cmp eax, ecx
jb 0x43c17d
mov eax, ecx
mov ecx, dword [esp + 4]
lea edx, [ecx + 0xc]
mov ecx, eax
shr ecx, 2
mov ebx, dword [ebp + 0x14]
mov edi, ebx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add ebx, ecx
mov edx, dword [esp + 4]
add edx, ecx
add edx, 0xc
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp + 0x28], edx
mov edi, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, dword [esp + 4]
test al, 1
mov edi, dword [ebp + 0x18]
je 0x43c1d1
and eax, 2
mov ecx, dword [esp + 0x28]
movzx ecx, byte [ecx + eax]
mov byte [ebx + eax], cl
mov eax, dword [edx + 8]
mov dword [edi], eax
push edx
call fcn.004360c0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
mov edi, ebx
mov edx, dword [esp + 4]
je 0x43c158
lea edx, [esp + 8]
lea esi, [esp + 0x20]
push edx
push eax
push dword [esp + 0xc]
push 2
push esi
push dword [ebp + 8]
push 6
push dword [0x4491e0]
push ecx
call fcn.00438180
mov edx, dword [esp + 0x28]
add esp, 0x24
mov esi, eax
jmp 0x43c158