Function at 0x43b940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x10], 0xfaf9f887
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x43b9cb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
and edx, 0x17f5bf3f
xor eax, 0x97f5bf3f
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, 0x46
and eax, 0x46
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x43b980
mov esi, dword [esp + 0x10]
mov eax, dword [0x447460]
test eax, eax
je 0x43ba1c
xor ecx, ecx
mov edx, dword [0x447464]
cmp dword [edx + ecx*8], 0x77defcd
je 0x43b9f0
inc ecx
cmp eax, ecx
jne 0x43b9e0
jmp 0x43ba1c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43ba1c
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x447468]
push eax
call fcn.00438760
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43bc12
push dword [esp + 8]
call fcn.00436cd0
add esp, 4
mov edi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], 0xfaf9f887
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 9
ja 0x43baac
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
mov esi, ecx
and esi, 0x17f5bf3f
xor ecx, 0x97f5bf3f
lea ecx, [ecx + esi*2]
lea esi, [ecx + edx]
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0xc]
mov edx, ecx
xor edx, 0x46
and ecx, 0x46
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xa
jb 0x43ba60
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x447460]
test ecx, ecx
je 0x43bb14
mov ebx, esi
xor edx, edx
mov esi, dword [0x447464]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x77defcd
je 0x43bae5
inc edx
cmp ecx, edx
jne 0x43bad0
mov esi, ebx
mov ebx, dword [ebp + 0x14]
jmp 0x43bb14
mov ecx, dword [esi + edx*8 + 4]
mov esi, ebx
cmp ecx, ebx
mov ebx, dword [ebp + 0x14]
je 0x43bb14
lea edx, [esp + 8]
push edx
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x447468]
push ecx
call fcn.00438760
add esp, 0x24
mov esi, eax
test ebx, ebx
je 0x43bc09
test esi, esi
js 0x43bc09
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43bc02
mov ecx, dword [edi + 0xc]
shr ecx, 1
mov edx, dword [ebx]
cmp edx, ecx
jb 0x43bb3c
mov edx, ecx
test edx, edx
je 0x43bbfd
mov dword [esp + 4], edi
mov ecx, edi
add ecx, 0x10
mov edi, edx
and edi, 3
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edx
je 0x43bb93
xor esi, esi
nop
nop
movzx ebx, word [ecx]
xor edx, edx
test bx, bx
setne dl
lea ecx, [ecx + edx*2]
mov word [eax], bx
add eax, 2
inc esi
cmp edi, esi
jne 0x43bb60
mov edx, dword [esp + 0x28]
sub edx, esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x24]
mov ebx, dword [ebp + 0x14]
cmp dword [esp + 0x28], 4
jae 0x43bba0
jmp 0x43bbfd
mov edi, dword [esp + 4]
cmp dword [esp + 0x28], 4
jb 0x43bbfd
nop
nop
movzx esi, word [ecx]
xor ebx, ebx
test si, si
setne bl
mov word [eax], si
lea esi, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [eax + 2], cx
lea ecx, [esi + ebx*2]
movzx esi, word [esi + ebx*2]
xor ebx, ebx
test si, si
setne bl
mov word [eax + 4], si
lea esi, [ecx + ebx*2]
movzx edi, word [ecx + ebx*2]
xor ecx, ecx
test di, di
setne cl
lea ecx, [esi + ecx*2]
mov word [eax + 6], di
add eax, 8
add edx, 0xfffffffc
jne 0x43bba0
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x24]
mov ebx, dword [ebp + 0x14]
mov word [eax], 0
mov eax, dword [edi + 0xc]
shr eax, 1
mov dword [ebx], eax
push edi
call fcn.00436da0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret