Function at 0x43a360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 8], 0x8a858487
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x43a3d6
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax - 0x3e428eeb]
add eax, 0x15
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov ecx, eax
xor ecx, 0x6c
and eax, 0x6c
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x43a390
mov esi, dword [esp + 8]
mov eax, dword [0x446fd4]
test eax, eax
je 0x43a42c
xor ecx, ecx
mov edx, dword [0x446fd8]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x77defcd
je 0x43a400
inc ecx
cmp eax, ecx
jne 0x43a3f0
jmp 0x43a42c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43a42c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x446fdc]
push eax
call fcn.00436e40
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43a622
push dword [esp + 0x14]
call fcn.004350e0
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 0x8a858487
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 7
ja 0x43a4b6
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
lea esi, [ecx - 0x3e428eeb]
add ecx, 0x15
and ecx, edx
or esi, edx
sub esi, ecx
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x18]
mov edx, ecx
xor edx, 0x6c
and ecx, 0x6c
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 8
jb 0x43a470
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [0x446fd4]
test ecx, ecx
je 0x43a524
mov ebx, esi
xor edx, edx
mov esi, dword [0x446fd8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x77defcd
je 0x43a4f5
inc edx
cmp ecx, edx
jne 0x43a4e0
mov esi, ebx
mov ebx, dword [ebp + 0x14]
jmp 0x43a524
mov ecx, dword [esi + edx*8 + 4]
mov esi, ebx
cmp ecx, ebx
mov ebx, dword [ebp + 0x14]
je 0x43a524
lea edx, [esp + 0x14]
push edx
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x446fdc]
push ecx
call fcn.00436e40
add esp, 0x24
mov esi, eax
test ebx, ebx
je 0x43a619
test esi, esi
js 0x43a619
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43a612
mov ecx, dword [edi + 0xc]
shr ecx, 1
mov edx, dword [ebx]
cmp edx, ecx
jb 0x43a54c
mov edx, ecx
test edx, edx
je 0x43a60d
mov dword [esp + 0x10], edi
mov ecx, edi
add ecx, 0x10
mov edi, edx
and edi, 3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
je 0x43a5a3
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 0x43a570
mov edx, dword [esp + 0x20]
sub edx, esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x14]
cmp dword [esp + 0x20], 4
jae 0x43a5b0
jmp 0x43a60d
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x20], 4
jb 0x43a60d
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 0x43a5b0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
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.00435190
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret