Function at 0x43c250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov dword [esp + 0x18], 0x52515057
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x24], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x43c2da
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + ecx]
add edx, 0xb84cdaf3
add eax, 0xf3
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 + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0x5b
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x43c290
mov esi, dword [esp + 0x18]
mov eax, dword [0x449688]
test eax, eax
je 0x43c32c
xor ecx, ecx
mov edx, dword [0x44968c]
nop
cmp dword [edx + ecx*8], 0x2286b4e
je 0x43c300
inc ecx
cmp eax, ecx
jne 0x43c2f0
jmp 0x43c32c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43c32c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449690]
push eax
call fcn.004388a0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43c5b0
push dword [esp + 0x10]
call fcn.00436700
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0x52515057
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x24], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xc
ja 0x43c3cc
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x18]
lea esi, [ecx + edx]
add esi, 0xb84cdaf3
add ecx, 0xf3
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 + 0x14], ecx
mov ecx, dword [esp + 0x14]
add cl, 0x5b
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x18], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xd
jb 0x43c380
mov esi, dword [esp + 0x18]
mov ecx, dword [0x449688]
test ecx, ecx
je 0x43c42e
mov edi, esi
xor edx, edx
mov esi, dword [0x44968c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2286b4e
je 0x43c402
inc edx
cmp ecx, edx
jne 0x43c3f0
mov esi, edi
jmp 0x43c42e
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x43c42e
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x449690]
push ecx
call fcn.004388a0
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43c5a7
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [esp + 8], ebx
mov dword [esp + 0x2c], esi
je 0x43c51c
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43c515
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edi, dword [edi]
cmp edi, eax
jb 0x43c464
mov edi, eax
test edi, edi
je 0x43c509
mov esi, ebx
add esi, 0x14
mov eax, edi
and eax, 3
mov dword [esp + 0xc], edi
je 0x43c498
nop
nop
nop
nop
dec edi
movzx ebx, word [esi]
xor ecx, ecx
test bx, bx
setne cl
lea esi, [esi + ecx*2]
mov word [edx], bx
add edx, 2
dec eax
jne 0x43c480
cmp dword [esp + 0xc], 4
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
jb 0x43c509
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 0x43c4b0
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
mov word [edx], 0
mov esi, dword [esp + 0x2c]
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 0x43c528
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43c5a7
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x43c59a
mov ebx, dword [edi]
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
cmp ebx, eax
jb 0x43c542
mov ebx, eax
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 8]
add eax, ecx
mov ecx, ebx
shr ecx, 2
mov edx, ebx
and edx, 0xfffffffc
mov edi, esi
add esi, edx
mov dword [esp + 0x30], esi
add edx, eax
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 3
mov ecx, eax
shr ecx, 1
mov edi, edx
mov dword [esp + 0xc], edx
mov edi, esi
mov esi, dword [esp + 0xc]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 0x30]
test bl, 1
mov edi, dword [ebp + 0x20]
je 0x43c59a
xor eax, 1
and eax, ebx
and ebx, 2
movzx ecx, byte [edx + ebx]
mov byte [esi + eax], cl
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0xc]
mov dword [edi], eax
mov esi, dword [esp + 0x2c]
push ebx
call fcn.00436790
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret